MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / clone

Method clone

src/StorageCache.cpp:180–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180const StorageCache *StorageCache::clone()
181{
182 std::unique_lock<fastlock> ul(m_lock);
183 // Clones never clone the cache
184 StorageCache *cacheNew = new StorageCache(const_cast<IStorage*>(m_spstorage->clone()), false /*fCache*/);
185 return cacheNew;
186}
187
188void StorageCache::expand(uint64_t slots)
189{

Callers 2

createSnapshotMethod · 0.45
CloneStorageCacheMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected