Skip to content

Commit 8403439

Browse files
committed
job-info: rename internal variable
Problem: The internal variable "check_eventlog" is confusing because it only means to "lookup" the eventlog. Rename variable to lookup_eventlog.
1 parent ad606a8 commit 8403439

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/modules/job-info/lookup.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ struct lookup_ctx {
2929
const flux_msg_t *msg;
3030
flux_jobid_t id;
3131
json_t *keys;
32-
bool check_eventlog;
32+
bool lookup_eventlog;
3333
int flags;
3434
flux_future_t *f;
3535
bool allow;
@@ -125,7 +125,7 @@ static int lookup_keys (struct lookup_ctx *l)
125125
}
126126
flux_future_set_flux (fall, l->ctx->h);
127127

128-
if (l->check_eventlog) {
128+
if (l->lookup_eventlog) {
129129
if (lookup_key (l, fall, "eventlog") < 0)
130130
goto error;
131131
}
@@ -288,7 +288,7 @@ static int check_keys_for_eventlog (struct lookup_ctx *l)
288288
return 0;
289289
}
290290

291-
l->check_eventlog = true;
291+
l->lookup_eventlog = true;
292292
return 0;
293293
}
294294

0 commit comments

Comments
 (0)