diff options
| author | Dan Engelbrecht <[email protected]> | 2024-09-03 19:40:54 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2024-09-03 19:40:54 +0200 |
| commit | 3dfd38c8837c513cb3a5eff576cf3590046bd31e (patch) | |
| tree | a3ab8d88738dcbeae5d709ccacfe15e1ed58b9ee /src/zenstore/caslog.cpp | |
| parent | meta info store (#75) (diff) | |
| download | zen-3dfd38c8837c513cb3a5eff576cf3590046bd31e.tar.xz zen-3dfd38c8837c513cb3a5eff576cf3590046bd31e.zip | |
oplog index snapshots (#140)
- Feature: Added project store oplog index snapshots for faster opening of oplog - opening oplogs are roughly 10x faster
Diffstat (limited to 'src/zenstore/caslog.cpp')
| -rw-r--r-- | src/zenstore/caslog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zenstore/caslog.cpp b/src/zenstore/caslog.cpp index 2c26e522f..139456349 100644 --- a/src/zenstore/caslog.cpp +++ b/src/zenstore/caslog.cpp @@ -153,13 +153,13 @@ CasLogFile::Close() } uint64_t -CasLogFile::GetLogSize() +CasLogFile::GetLogSize() const { return m_File.FileSize(); } uint64_t -CasLogFile::GetLogCount() +CasLogFile::GetLogCount() const { uint64_t LogFileSize = m_AppendOffset.load(std::memory_order_acquire); if (LogFileSize < sizeof(FileHeader)) |