From c66d244eb7847ec907936a95195ef1f888fc87cd Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Fri, 20 Sep 2024 12:57:56 +0200 Subject: unblock PreCache (#164) Don't lock disk cache buckets from writing when scanning records for attachment references --- src/zenstore/include/zenstore/cache/cachedisklayer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/zenstore/include') diff --git a/src/zenstore/include/zenstore/cache/cachedisklayer.h b/src/zenstore/include/zenstore/cache/cachedisklayer.h index b0b8b4cf3..a735893a1 100644 --- a/src/zenstore/include/zenstore/cache/cachedisklayer.h +++ b/src/zenstore/include/zenstore/cache/cachedisklayer.h @@ -235,7 +235,7 @@ public: void GatherReferences(GcContext& GcCtx); void CollectGarbage(GcContext& GcCtx); RwLock::SharedLockScope GetGcReferencerLock(); - bool GetReferencesLocked(GcCtx& Ctx, std::vector& OutReferences); + bool GetReferences(GcCtx& Ctx, bool StateIsAlreadyLocked, std::vector& OutReferences); bool ReadAttachmentsFromMetaData(uint32_t BlockIndex, std::span InlineKeys, -- cgit v1.2.3