From e4c605f4fe76bec25440431ee05f2df2cf0aaf83 Mon Sep 17 00:00:00 2001 From: Jim Garlick Date: Tue, 7 Nov 2017 15:21:28 -0800 Subject: [PATCH] modules/kvs: add note to prime_cache_with_rootdir --- src/modules/kvs/kvs.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/kvs/kvs.c b/src/modules/kvs/kvs.c index 22518c68b81f..d146740bdc6a 100644 --- a/src/modules/kvs/kvs.c +++ b/src/modules/kvs/kvs.c @@ -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);