git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a063905
)
fix forced job owner query on partial feed
author
Aleš Křenek
<ljocha@ics.muni.cz>
Mon, 20 Aug 2007 14:42:53 +0000
(14:42 +0000)
committer
Aleš Křenek
<ljocha@ics.muni.cz>
Mon, 20 Aug 2007 14:42:53 +0000
(14:42 +0000)
org.glite.jp.primary/src/feed.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.jp.primary/src/feed.c
b/org.glite.jp.primary/src/feed.c
index
ed271b9
..
46d27df
100644
(file)
--- a/
org.glite.jp.primary/src/feed.c
+++ b/
org.glite.jp.primary/src/feed.c
@@
-189,8
+189,11
@@
static int match_feed(
}
else {
if (!owner) {
+ for (i=0; meta[i].name; i++) glite_jp_attrval_free(meta+i,0);
+ memset(meta,0,sizeof meta);
+ meta[0].name = strdup(GLITE_JP_ATTR_OWNER);
glite_jppsbe_get_job_metadata(ctx,job,meta);
-
for (i=0; meta[i].name && strcmp(meta[i].name,GLITE_JP_ATTR_OWNER); i++)
;
+
owner = meta[0].value
;
}
glite_jpps_single_feed(ctx,feed->id,0,feed->destination,job,owner,attrs);
}