aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/include
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2025-12-01 16:32:09 +0100
committerGitHub Enterprise <[email protected]>2025-12-01 16:32:09 +0100
commitba00b4a54660150325eb734b6157333ffdead53a (patch)
tree10aaaa3ffc89d989c195b5c1bf35f7cb2ddfb7e4 /src/zenstore/include
parentuse scope guards to secure that BasicFile::Detach is called even on exception... (diff)
downloadzen-ba00b4a54660150325eb734b6157333ffdead53a.tar.xz
zen-ba00b4a54660150325eb734b6157333ffdead53a.zip
make sure we use exclusive lock in projectstore when flushing/writing snapshot (#673)
Diffstat (limited to 'src/zenstore/include')
-rw-r--r--src/zenstore/include/zenstore/projectstore.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zenstore/include/zenstore/projectstore.h b/src/zenstore/include/zenstore/projectstore.h
index ad108f65b..09c3096ad 100644
--- a/src/zenstore/include/zenstore/projectstore.h
+++ b/src/zenstore/include/zenstore/projectstore.h
@@ -308,8 +308,8 @@ public:
/** Scan oplog and register each entry, thus updating the in-memory tracking tables
*/
uint32_t GetUnusedSpacePercentLocked() const;
- void WriteIndexSnapshot();
- void ReadIndexSnapshot();
+ void WriteIndexSnapshot(RwLock::ExclusiveLockScope&);
+ void ReadIndexSnapshot(RwLock::ExclusiveLockScope&);
void RefreshLsnToPayloadOffsetMap(RwLock::ExclusiveLockScope&);
struct OplogEntryMapping