aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/include
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2023-11-06 11:38:56 +0100
committerGitHub <[email protected]>2023-11-06 11:38:56 +0100
commitba972a77cb75facefd3f0da962cf34ea5a391884 (patch)
tree9e0fe9ad41dd6ba20b966065eaa9f1dc214ab531 /src/zenstore/include
parentkeep a "null" iobuffer core to reduce redundant memory allocations (#507) (diff)
downloadzen-ba972a77cb75facefd3f0da962cf34ea5a391884.tar.xz
zen-ba972a77cb75facefd3f0da962cf34ea5a391884.zip
multithread cache bucket (#508)
* Multithread init and flush of cache bucket * tweaked threading cound for bucket discovery, disklayer flush and gc v2
Diffstat (limited to 'src/zenstore/include')
-rw-r--r--src/zenstore/include/zenstore/gc.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/zenstore/include/zenstore/gc.h b/src/zenstore/include/zenstore/gc.h
index e2e99d5a4..1b9929216 100644
--- a/src/zenstore/include/zenstore/gc.h
+++ b/src/zenstore/include/zenstore/gc.h
@@ -52,7 +52,7 @@ public:
static TimePoint TimePointFromTick(const Tick TickCount) { return TimePoint{Duration{TickCount}}; }
};
-//////// Begin New GC WIP
+//////// Begin GC V2
struct GcSettings
{
@@ -62,6 +62,7 @@ struct GcSettings
bool IsDeleteMode = false;
bool SkipCidDelete = false;
bool Verbose = false;
+ bool SingleThread = false;
};
struct GcReferencerStats
@@ -237,7 +238,7 @@ public:
virtual GcReferencePruner* CreateReferencePruner(GcCtx& Ctx, GcReferenceStoreStats& Stats) = 0;
};
-//////// End New GC WIP
+//////// End GC V2
/** Garbage Collection context object
*/
@@ -332,7 +333,7 @@ public:
GcManager();
~GcManager();
- //////// Begin New GC WIP
+ //////// Begin GC V2
void AddGcReferencer(GcReferencer& Referencer);
void RemoveGcReferencer(GcReferencer& Referencer);
@@ -342,7 +343,7 @@ public:
GcResult CollectGarbage(const GcSettings& Settings);
- //////// End New GC WIP
+ //////// End GC V2
void AddGcContributor(GcContributor* Contributor);
void RemoveGcContributor(GcContributor* Contributor);