Skip to content

Commit 637e314

Browse files
committed
fix bug: missing to store log for the first tick
1 parent c9ed9bf commit 637e314

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

database/garbageCleaner.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ void garbageCleaner()
272272
}
273273
else
274274
{
275-
gLastCleanTickData = gInitialTick;
275+
gLastCleanTickData = gInitialTick - 1;
276276
Logger::get()->info("No persisted lastCleanTickData found, using default: {}", gLastCleanTickData);
277277
}
278278

@@ -283,7 +283,7 @@ void garbageCleaner()
283283
}
284284
else
285285
{
286-
gLastCleanTransactionTick = gInitialTick;
286+
gLastCleanTransactionTick = gInitialTick - 1;
287287
Logger::get()->info("No persisted gLastCleanTransactionTick found, using default: {}", gLastCleanTransactionTick);
288288
}
289289

0 commit comments

Comments
 (0)