Skip to content

Commit

Permalink
Merge pull request #1057 from chu11/misccleanup5
Browse files Browse the repository at this point in the history
Few miscellaneous KVS cleanups
  • Loading branch information
garlick committed May 11, 2017
2 parents 095a509 + 1ea6e9e commit 79e983a
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/modules/kvs/kvs.c
Expand Up @@ -107,10 +107,10 @@ typedef struct {

static int setroot_event_send (kvs_ctx_t *ctx, json_object *names);
static int error_event_send (kvs_ctx_t *ctx, json_object *names, int errnum);
void commit_prep_cb (flux_reactor_t *r, flux_watcher_t *w,
int revents, void *arg);
void commit_check_cb (flux_reactor_t *r, flux_watcher_t *w,
int revents, void *arg);
static void commit_prep_cb (flux_reactor_t *r, flux_watcher_t *w,
int revents, void *arg);
static void commit_check_cb (flux_reactor_t *r, flux_watcher_t *w,
int revents, void *arg);

static void freectx (void *arg)
{
Expand Down Expand Up @@ -593,8 +593,8 @@ static void commit_apply_fence (fence_t *f)
return;
}

void commit_prep_cb (flux_reactor_t *r, flux_watcher_t *w,
int revents, void *arg)
static void commit_prep_cb (flux_reactor_t *r, flux_watcher_t *w,
int revents, void *arg)
{
kvs_ctx_t *ctx = arg;
fence_t *f;
Expand All @@ -619,7 +619,7 @@ void commit_prep_cb (flux_reactor_t *r, flux_watcher_t *w,
* If we were to merge commit #1 and commit #3, A=2 would be set after
* A=3.
*/
void commit_merge_all (kvs_ctx_t *ctx)
static void commit_merge_all (kvs_ctx_t *ctx)
{
fence_t *f = zlist_first (ctx->ready);

Expand Down Expand Up @@ -660,8 +660,8 @@ void commit_merge_all (kvs_ctx_t *ctx)
}
}

void commit_check_cb (flux_reactor_t *r, flux_watcher_t *w,
int revents, void *arg)
static void commit_check_cb (flux_reactor_t *r, flux_watcher_t *w,
int revents, void *arg)
{
kvs_ctx_t *ctx = arg;
fence_t *f;
Expand Down Expand Up @@ -749,7 +749,7 @@ static bool walk (kvs_ctx_t *ctx, json_object *root, const char *path,
if (Jget_str (dirent, "LINKVAL", &link)) {
if (depth == SYMLINK_CYCLE_LIMIT)
goto error; /* FIXME: get ELOOP back to kvs_get */
if (!walk (ctx, root, link, &dirent, wait, false, depth))
if (!walk (ctx, root, link, &dirent, wait, flags, depth))
goto stall;
if (!dirent)
goto error;
Expand All @@ -758,7 +758,7 @@ static bool walk (kvs_ctx_t *ctx, json_object *root, const char *path,
if (!load (ctx, ref, wait, &dir))
goto stall;

} else if (json_object_object_get_ex (dirent, "DIRVAL", &dir)) {
} else if (json_object_object_get_ex (dirent, "DIRVAL", NULL)) {
/* N.B. in current code, directories are never stored by value */
log_msg_exit ("%s: unexpected DIRVAL: path=%s name=%s: dirent=%s ",
__FUNCTION__, path, name, Jtostr (dirent));
Expand Down

0 comments on commit 79e983a

Please sign in to comment.