aboutsummaryrefslogtreecommitdiff
path: root/zenstore
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2023-04-21 15:47:00 +0200
committerGitHub <[email protected]>2023-04-21 15:47:00 +0200
commit3a774c0e15d86102a540d51c34cb35f9689df6a8 (patch)
treef5b999068c20f3a9cb8c2e92e7dc55f3c2021ce4 /zenstore
parentswitch to juliangruber/read-file-action to avoid deprecated api usage (#252) (diff)
downloadzen-3a774c0e15d86102a540d51c34cb35f9689df6a8.tar.xz
zen-3a774c0e15d86102a540d51c34cb35f9689df6a8.zip
save cache rawsize and rawhash in manifest file instead of log file (#251)
* save cache rawsize and rawhash in manifest file instead of log file * don't use # as prefix for counts in log
Diffstat (limited to 'zenstore')
-rw-r--r--zenstore/blockstore.cpp8
-rw-r--r--zenstore/compactcas.cpp8
-rw-r--r--zenstore/filecas.cpp8
3 files changed, 12 insertions, 12 deletions
diff --git a/zenstore/blockstore.cpp b/zenstore/blockstore.cpp
index 0e1c5b2c7..5e47d061f 100644
--- a/zenstore/blockstore.cpp
+++ b/zenstore/blockstore.cpp
@@ -335,9 +335,9 @@ BlockStore::ReclaimSpace(const ReclaimSnapshotState& Snapshot,
Stopwatch TotalTimer;
const auto _ = MakeGuard([&] {
ZEN_DEBUG(
- "reclaim space for '{}' DONE after {}, write lock: {} ({}), read lock: {} ({}), collected {} bytes, deleted #{} and moved "
- "#{} "
- "of #{} "
+ "reclaim space for '{}' DONE after {}, write lock: {} ({}), read lock: {} ({}), collected {} bytes, deleted {} and moved "
+ "{} "
+ "of {} "
"chunks ({}).",
m_BlocksBasePath,
NiceTimeSpanMs(TotalTimer.GetElapsedTimeMs()),
@@ -424,7 +424,7 @@ BlockStore::ReclaimSpace(const ReclaimSnapshotState& Snapshot,
if (DryRun)
{
- ZEN_DEBUG("garbage collect for '{}' DISABLED, found #{} {} chunks of total #{} {}",
+ ZEN_DEBUG("garbage collect for '{}' DISABLED, found {} {} chunks of total {} {}",
m_BlocksBasePath,
DeleteCount,
NiceBytes(OldTotalSize - NewTotalSize),
diff --git a/zenstore/compactcas.cpp b/zenstore/compactcas.cpp
index 60644847f..7b2c21b0f 100644
--- a/zenstore/compactcas.cpp
+++ b/zenstore/compactcas.cpp
@@ -332,7 +332,7 @@ CasContainerStrategy::Scrub(ScrubContext& Ctx)
if (!BadKeys.empty())
{
- ZEN_WARN("Scrubbing found #{} bad chunks in '{}'", BadKeys.size(), m_RootDirectory / m_ContainerBaseName);
+ ZEN_WARN("Scrubbing found {} bad chunks in '{}'", BadKeys.size(), m_RootDirectory / m_ContainerBaseName);
if (Ctx.RunRecovery())
{
@@ -513,7 +513,7 @@ CasContainerStrategy::MakeIndexSnapshot()
uint64_t EntryCount = 0;
Stopwatch Timer;
const auto _ = MakeGuard([&] {
- ZEN_INFO("wrote store snapshot for '{}' containing #{} entries in {}",
+ ZEN_INFO("wrote store snapshot for '{}' containing {} entries in {}",
m_RootDirectory / m_ContainerBaseName,
EntryCount,
NiceTimeSpanMs(Timer.GetElapsedTimeMs()));
@@ -594,7 +594,7 @@ CasContainerStrategy::ReadIndexFile()
{
Stopwatch Timer;
const auto _ = MakeGuard([&] {
- ZEN_INFO("read store '{}' index containing #{} entries in {}",
+ ZEN_INFO("read store '{}' index containing {} entries in {}",
IndexPath,
Entries.size(),
NiceTimeSpanMs(Timer.GetElapsedTimeMs()));
@@ -647,7 +647,7 @@ CasContainerStrategy::ReadLog(uint64_t SkipEntryCount)
size_t LogEntryCount = 0;
Stopwatch Timer;
const auto _ = MakeGuard([&] {
- ZEN_INFO("read store '{}' log containing #{} entries in {}",
+ ZEN_INFO("read store '{}' log containing {} entries in {}",
m_RootDirectory / m_ContainerBaseName,
LogEntryCount,
NiceTimeSpanMs(Timer.GetElapsedTimeMs()));
diff --git a/zenstore/filecas.cpp b/zenstore/filecas.cpp
index 986cc9ae6..1d25920c4 100644
--- a/zenstore/filecas.cpp
+++ b/zenstore/filecas.cpp
@@ -1026,7 +1026,7 @@ FileCasStrategy::MakeIndexSnapshot()
uint64_t EntryCount = 0;
Stopwatch Timer;
const auto _ = MakeGuard([&] {
- ZEN_INFO("wrote store snapshot for '{}' containing #{} entries in {}",
+ ZEN_INFO("wrote store snapshot for '{}' containing {} entries in {}",
m_RootDirectory,
EntryCount,
NiceTimeSpanMs(Timer.GetElapsedTimeMs()));
@@ -1105,7 +1105,7 @@ FileCasStrategy::ReadIndexFile()
{
Stopwatch Timer;
const auto _ = MakeGuard([&] {
- ZEN_INFO("read store '{}' index containing #{} entries in {}",
+ ZEN_INFO("read store '{}' index containing {} entries in {}",
IndexPath,
Entries.size(),
NiceTimeSpanMs(Timer.GetElapsedTimeMs()));
@@ -1193,7 +1193,7 @@ FileCasStrategy::ReadLog(uint64_t SkipEntryCount)
uint64_t LogEntryCount = 0;
Stopwatch Timer;
const auto _ = MakeGuard([&] {
- ZEN_INFO("read store '{}' log containing #{} entries in {}", LogPath, LogEntryCount, NiceTimeSpanMs(Timer.GetElapsedTimeMs()));
+ ZEN_INFO("read store '{}' log containing {} entries in {}", LogPath, LogEntryCount, NiceTimeSpanMs(Timer.GetElapsedTimeMs()));
});
TCasLogFile<FileCasIndexEntry> CasLog;
CasLog.Open(LogPath, CasLogFile::Mode::kRead);
@@ -1227,7 +1227,7 @@ FileCasStrategy::ReadLog(uint64_t SkipEntryCount)
SkipEntryCount);
if (InvalidEntryCount)
{
- ZEN_WARN("found #{} invalid entries in '{}'", InvalidEntryCount, LogPath);
+ ZEN_WARN("found {} invalid entries in '{}'", InvalidEntryCount, LogPath);
}
return LogEntryCount;
}