aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-05-27 18:50:05 +0200
committerStefan Boberg <[email protected]>2021-05-27 18:50:05 +0200
commit5a8fc443913fd6c31da792491cee85f21f890ee5 (patch)
tree899fd6e304ff0abc5d45c428780638f9bd684e60
parentFixed logic to avoid a race condition which could cause a sharing violation w... (diff)
downloadzen-5a8fc443913fd6c31da792491cee85f21f890ee5.tar.xz
zen-5a8fc443913fd6c31da792491cee85f21f890ee5.zip
Moved lock closer to the members it protects for clarity and maybe cache locality
-rw-r--r--zenserver/projectstore.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/zenserver/projectstore.h b/zenserver/projectstore.h
index 72b8a1cd6..317210469 100644
--- a/zenserver/projectstore.h
+++ b/zenserver/projectstore.h
@@ -109,11 +109,11 @@ public:
using OidMap = tsl::robin_map<Oid, V, Oid::Hasher>;
Project* m_OuterProject = nullptr;
- RwLock m_OplogLock;
CasStore& m_CasStore;
std::filesystem::path m_BasePath;
std::filesystem::path m_TempPath;
+ RwLock m_OplogLock;
OidMap<IoHash> m_ChunkMap; // output data chunk id -> CAS address
OidMap<IoHash> m_MetaMap; // meta chunk id -> CAS address
OidMap<FileMapEntry> m_FileMap; // file id -> file map entry