aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPer Larsson <[email protected]>2021-12-09 13:28:11 +0100
committerPer Larsson <[email protected]>2021-12-09 13:28:11 +0100
commit8830b3011e07eacfd90d35727cfe65bb5ea5fce4 (patch)
treed345532a85aa08a7afad784ff83e00f4dc264837
parentFixed bug in z$ garbage collection. (diff)
downloadzen-8830b3011e07eacfd90d35727cfe65bb5ea5fce4.tar.xz
zen-8830b3011e07eacfd90d35727cfe65bb5ea5fce4.zip
GC default off.
-rw-r--r--zenserver/config.cpp2
-rw-r--r--zenserver/config.h2
-rw-r--r--zenstore/include/zenstore/gc.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/zenserver/config.cpp b/zenserver/config.cpp
index 49240d176..1cbb84452 100644
--- a/zenserver/config.cpp
+++ b/zenserver/config.cpp
@@ -274,7 +274,7 @@ ParseCliOptions(int argc, char* argv[], ZenServerOptions& ServerOptions)
"",
"gc-enabled",
"Whether garbage collection is enabled or not.",
- cxxopts::value<bool>(ServerOptions.GcConfig.Enabled)->default_value("true"),
+ cxxopts::value<bool>(ServerOptions.GcConfig.Enabled)->default_value("false"),
"");
options.add_option("gc",
diff --git a/zenserver/config.h b/zenserver/config.h
index 97f339a0e..727143489 100644
--- a/zenserver/config.h
+++ b/zenserver/config.h
@@ -76,7 +76,7 @@ struct ZenGcConfig
ZenCasEvictionPolicy Cas;
ZenCacheEvictionPolicy Cache;
int32_t IntervalSeconds = 60 * 60;
- bool Enabled = true;
+ bool Enabled = false;
};
struct ZenServerOptions
diff --git a/zenstore/include/zenstore/gc.h b/zenstore/include/zenstore/gc.h
index b30c70b1f..2ec318e9a 100644
--- a/zenstore/include/zenstore/gc.h
+++ b/zenstore/include/zenstore/gc.h
@@ -151,7 +151,7 @@ struct GcSchedulerConfig
{
std::filesystem::path RootDirectory;
std::chrono::seconds Interval{3600};
- bool Enabled = true;
+ bool Enabled = false;
};
class GcScheduler