diff options
| author | Dan Engelbrecht <[email protected]> | 2022-12-08 10:53:22 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-12-08 01:53:22 -0800 |
| commit | e64451f535c71cdbf506352a7b20d3becd1bb557 (patch) | |
| tree | ddaa78ecf41b72c4cf764c91bd08ce43bab0f170 /zenserver/cache/structuredcachestore.cpp | |
| parent | 0.2.0-pre1 (diff) | |
| download | zen-e64451f535c71cdbf506352a7b20d3becd1bb557.tar.xz zen-e64451f535c71cdbf506352a7b20d3becd1bb557.zip | |
Fix logging of number of read entries from log/index file for stores (#204)
* Fix logging of number of read entries from log/index file for stores
* changelog
Diffstat (limited to 'zenserver/cache/structuredcachestore.cpp')
| -rw-r--r-- | zenserver/cache/structuredcachestore.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/zenserver/cache/structuredcachestore.cpp b/zenserver/cache/structuredcachestore.cpp index 75f845cbf..ecb41d57e 100644 --- a/zenserver/cache/structuredcachestore.cpp +++ b/zenserver/cache/structuredcachestore.cpp @@ -649,7 +649,7 @@ ZenCacheDiskLayer::CacheBucket::OpenOrCreate(std::filesystem::path BucketDir, bo void ZenCacheDiskLayer::CacheBucket::MakeIndexSnapshot() { - ZEN_INFO("write store snapshot for '{}'", m_BucketDir / m_BucketName); + ZEN_DEBUG("write store snapshot for '{}'", m_BucketDir / m_BucketName); uint64_t EntryCount = 0; Stopwatch Timer; const auto _ = MakeGuard([&] { @@ -738,7 +738,7 @@ ZenCacheDiskLayer::CacheBucket::ReadIndexFile() Stopwatch Timer; const auto _ = MakeGuard([&] { ZEN_INFO("read store '{}' index containing #{} entries in {}", - m_BucketDir / m_BucketName, + IndexPath, Entries.size(), NiceTimeSpanMs(Timer.GetElapsedTimeMs())); }); @@ -784,13 +784,12 @@ ZenCacheDiskLayer::CacheBucket::ReadIndexFile() uint64_t ZenCacheDiskLayer::CacheBucket::ReadLog(uint64_t SkipEntryCount) { - std::vector<DiskIndexEntry> Entries; - std::filesystem::path LogPath = GetLogPath(m_BucketDir, m_BucketName); + std::filesystem::path LogPath = GetLogPath(m_BucketDir, m_BucketName); if (std::filesystem::is_regular_file(LogPath)) { Stopwatch Timer; const auto _ = MakeGuard([&] { - ZEN_INFO("read store '{}' log containing #{} entries in {}", LogPath, Entries.size(), NiceTimeSpanMs(Timer.GetElapsedTimeMs())); + ZEN_INFO("read store '{}' log containing #{} entries in {}", LogPath, m_Index.size(), NiceTimeSpanMs(Timer.GetElapsedTimeMs())); }); TCasLogFile<DiskIndexEntry> CasLog; CasLog.Open(LogPath, CasLogFile::Mode::kRead); |