aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/filecas.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2024-09-04 09:27:32 +0200
committerGitHub Enterprise <[email protected]>2024-09-04 09:27:32 +0200
commit1e52c3e1f479a802d151a4d162bb0b9174d22cf7 (patch)
tree96427532f0df1e735fc5ced8087fb4996d021be5 /src/zenstore/filecas.cpp
parentdelay oplog read (#141) (diff)
downloadzen-1e52c3e1f479a802d151a4d162bb0b9174d22cf7.tar.xz
zen-1e52c3e1f479a802d151a4d162bb0b9174d22cf7.zip
move gc logs to gc logger (#142)
- Improvement: Move GC logging in callback functions into "gc" context
Diffstat (limited to 'src/zenstore/filecas.cpp')
-rw-r--r--src/zenstore/filecas.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/zenstore/filecas.cpp b/src/zenstore/filecas.cpp
index 48177ac9e..733140e50 100644
--- a/src/zenstore/filecas.cpp
+++ b/src/zenstore/filecas.cpp
@@ -1517,6 +1517,8 @@ public:
{
ZEN_TRACE_CPU("FileCas::CompactStore");
+ auto Log = [&Ctx]() { return Ctx.Logger; };
+
Stopwatch Timer;
const auto _ = MakeGuard([&] {
Reset(m_ReferencesToClean);
@@ -1635,6 +1637,8 @@ public:
{
ZEN_TRACE_CPU("FileCas::RemoveUnreferencedData");
+ auto Log = [&Ctx]() { return Ctx.Logger; };
+
Stopwatch Timer;
const auto _ = MakeGuard([&] {
if (!Ctx.Settings.Verbose)
@@ -1714,6 +1718,8 @@ FileCasStrategy::CreateReferencePruner(GcCtx& Ctx, GcReferenceStoreStats&)
{
ZEN_TRACE_CPU("FileCas::CreateReferencePruner");
+ auto Log = [&Ctx]() { return Ctx.Logger; };
+
Stopwatch Timer;
const auto _ = MakeGuard([&] {
if (!Ctx.Settings.Verbose)