Skip to content

Commit

Permalink
modules/kvs: add note to prime_cache_with_rootdir
Browse files Browse the repository at this point in the history
  • Loading branch information
garlick committed Nov 7, 2017
1 parent 8f25ea9 commit e4c605f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/kvs/kvs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1404,6 +1404,10 @@ static void setroot_event_cb (flux_t *h, flux_msg_handler_t *w,

finalize_fences_bynames (ctx, names, 0);

/* Optimization: prime local cache with directory object, if provided
* in event message. Ignore failure here - object will be fetched on
* demand from content cache if not in local cache.
*/
if (!json_is_null (rootdir))
prime_cache_with_rootdir (ctx, rootdir);

Expand Down

0 comments on commit e4c605f

Please sign in to comment.