aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/projectstore/projectstore.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenserver/projectstore/projectstore.h')
-rw-r--r--src/zenserver/projectstore/projectstore.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/zenserver/projectstore/projectstore.h b/src/zenserver/projectstore/projectstore.h
index 5ebcd420c..f9611653b 100644
--- a/src/zenserver/projectstore/projectstore.h
+++ b/src/zenserver/projectstore/projectstore.h
@@ -99,7 +99,7 @@ public:
int GetOpIndexByKey(const Oid& Key);
int GetMaxOpIndex() const;
- IoBuffer FindChunk(Oid ChunkId);
+ IoBuffer FindChunk(const Oid& ChunkId);
inline static const uint32_t kInvalidOp = ~0u;
@@ -109,7 +109,7 @@ public:
*/
uint32_t AppendNewOplogEntry(CbPackage Op);
- uint32_t AppendNewOplogEntry(CbObject Core);
+ uint32_t AppendNewOplogEntry(CbObjectView Core);
enum UpdateType
{
@@ -202,12 +202,12 @@ public:
uint32_t RegisterOplogEntry(RwLock::ExclusiveLockScope& OplogLock, const OplogEntryMapping& OpMapping, const OplogEntry& OpEntry);
void AddFileMapping(const RwLock::ExclusiveLockScope& OplogLock,
- Oid FileId,
- IoHash Hash,
+ const Oid& FileId,
+ const IoHash& Hash,
std::string_view ServerPath,
std::string_view ClientPath);
- void AddChunkMapping(const RwLock::ExclusiveLockScope& OplogLock, Oid ChunkId, IoHash Hash);
- void AddMetaMapping(const RwLock::ExclusiveLockScope& OplogLock, Oid ChunkId, IoHash Hash);
+ void AddChunkMapping(const RwLock::ExclusiveLockScope& OplogLock, const Oid& ChunkId, const IoHash& Hash);
+ void AddMetaMapping(const RwLock::ExclusiveLockScope& OplogLock, const Oid& ChunkId, const IoHash& Hash);
friend class ProjectStoreReferenceChecker;
};