diff options
| author | Dan Engelbrecht <[email protected]> | 2023-10-20 11:02:02 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-20 11:02:02 +0200 |
| commit | 42cf81240256b92ef423a15add32d8b564375c7d (patch) | |
| tree | 2ec5103d1e1278b3b727955a6f92e99f8451ea1d /src/zen/cmds/admin_cmd.cpp | |
| parent | Change shared server config to use port 8558 (diff) | |
| download | archived-zen-42cf81240256b92ef423a15add32d8b564375c7d.tar.xz archived-zen-42cf81240256b92ef423a15add32d8b564375c7d.zip | |
Add --skip-delete option to gc command (#484)
- Feature: Add `--skip-delete` option to gc command
- Bugfix: Fix implementation when claiming GC reserve during GC
Diffstat (limited to 'src/zen/cmds/admin_cmd.cpp')
| -rw-r--r-- | src/zen/cmds/admin_cmd.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/zen/cmds/admin_cmd.cpp b/src/zen/cmds/admin_cmd.cpp index 9713d8c87..27341fe58 100644 --- a/src/zen/cmds/admin_cmd.cpp +++ b/src/zen/cmds/admin_cmd.cpp @@ -76,6 +76,12 @@ GcCommand::GcCommand() "<smallobjects>"); m_Options.add_option("", "", "skipcid", "Skip collection of CAS data", cxxopts::value(m_SkipCid)->default_value("false"), "<skipcid>"); m_Options.add_option("", + "", + "skipdelete", + "Skip deletion of data (dryrun)", + cxxopts::value(m_SkipDelete)->default_value("false"), + "<skipdelete>"); + m_Options.add_option("", "m", "maxcacheduration", "Max cache lifetime (in seconds)", @@ -127,6 +133,10 @@ GcCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv) { Params.Add({"skipcid", "true"}); } + if (m_SkipDelete) + { + Params.Add({"skipdelete", "true"}); + } cpr::Session Session; Session.SetHeader(cpr::Header{{"Accept", "application/json"}}); |