aboutsummaryrefslogtreecommitdiff
path: root/zenserver/projectstore.h
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2022-06-10 15:06:10 +0200
committerStefan Boberg <[email protected]>2022-06-10 15:06:10 +0200
commit8a6c127c3206d59cb73be1caa7d93a1fe4303e6e (patch)
tree32d7e025f00c93467cf0b3948c0d9f90cae77ee1 /zenserver/projectstore.h
parentgc: improved message indicating no GC is scheduled (diff)
downloadzen-8a6c127c3206d59cb73be1caa7d93a1fe4303e6e.tar.xz
zen-8a6c127c3206d59cb73be1caa7d93a1fe4303e6e.zip
fixed issue where projects would not be discovered via DiscoverProjects due to use of stem() vs filename()
added /prj/{project}/oplog/{log}/{op} endpoint to allow retrieval of an op entry by LSN. Supports returning CbObject or CbPackage format payloads
Diffstat (limited to 'zenserver/projectstore.h')
-rw-r--r--zenserver/projectstore.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/zenserver/projectstore.h b/zenserver/projectstore.h
index f71434783..bf6afa592 100644
--- a/zenserver/projectstore.h
+++ b/zenserver/projectstore.h
@@ -69,7 +69,8 @@ public:
void IterateFileMap(std::function<void(const Oid&, const std::string_view& ServerPath, const std::string_view& ClientPath)>&& Fn);
void IterateOplog(std::function<void(CbObject)>&& Fn);
- std::optional<CbObject> GetOplog(const Oid& Key);
+ std::optional<CbObject> GetOpByKey(const Oid& Key);
+ std::optional<CbObject> GetOpByIndex(int Index);
IoBuffer FindChunk(Oid ChunkId);