aboutsummaryrefslogtreecommitdiff
path: root/zenserver/cache/structuredcachestore.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-09-22 22:46:21 +0200
committerMartin Ridgers <[email protected]>2021-09-22 22:46:21 +0200
commit1623f7471b9b0c09b7e9c98652c280d1f6559ca1 (patch)
tree78518774fe79ddf3e266a75c699b697971f52f4b /zenserver/cache/structuredcachestore.cpp
parentMerged main into linux-mac (diff)
parentClang format fix. (diff)
downloadzen-1623f7471b9b0c09b7e9c98652c280d1f6559ca1.tar.xz
zen-1623f7471b9b0c09b7e9c98652c280d1f6559ca1.zip
Merge main
Diffstat (limited to 'zenserver/cache/structuredcachestore.cpp')
-rw-r--r--zenserver/cache/structuredcachestore.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/zenserver/cache/structuredcachestore.cpp b/zenserver/cache/structuredcachestore.cpp
index 502ca6605..3d80bb14c 100644
--- a/zenserver/cache/structuredcachestore.cpp
+++ b/zenserver/cache/structuredcachestore.cpp
@@ -108,6 +108,13 @@ ZenCacheStore::Flush()
void
ZenCacheStore::Scrub(ScrubContext& Ctx)
{
+ if (m_LastScrubTime == Ctx.ScrubTimestamp())
+ {
+ return;
+ }
+
+ m_LastScrubTime = Ctx.ScrubTimestamp();
+
m_DiskLayer.Scrub(Ctx);
m_MemLayer.Scrub(Ctx);
}