Skip to content

Commit 10bc93c

Browse files
generatedunixname537391475639613meta-codesync[bot]
authored andcommitted
fbcode/cachelib/allocator/nvmcache/NvmCache.h
Reviewed By: yfeldblum Differential Revision: D85774599 fbshipit-source-id: 9a7c389975e4cc6cac4adb4aa37f4994b5b13079
1 parent e434fed commit 10bc93c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cachelib/allocator/nvmcache/NvmCache.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
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_;

0 commit comments

Comments
 (0)