File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
cachelib/allocator/nvmcache Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1818
1919#include < folly/container/F14Map.h>
2020#include < folly/container/F14Set.h>
21+ #include < folly/container/small_vector.h>
2122#include < folly/fibers/TimedMutex.h>
2223#include < folly/hash/Hash.h>
2324#include < folly/json/dynamic.h>
@@ -352,8 +353,9 @@ class NvmCache {
352353 struct GetCtx {
353354 NvmCache& cache; // < the NvmCache instance
354355 const std::string key; // < key being fetched
355- std::vector<std::shared_ptr<WaitContext<ReadHandle>>> waiters; // list of
356- // waiters
356+ folly::small_vector<std::shared_ptr<WaitContext<ReadHandle>>, 4 >
357+ waiters; // list of
358+ // waiters
357359 WriteHandle it; // will be set when Context is being filled
358360 util::LatencyTracker tracker_;
359361 bool valid_;
You can’t perform that action at this time.
0 commit comments