("debug", "Additional debug output from DBObjectMap")
("oid", po::value<string>(&oid), "Restrict to this object id when dumping objects")
("command", po::value<string>(&cmd),
- "command arg is one of [dump-raw-keys, dump-raw-key-vals, dump-objects, dump-objects-with-keys, check, dump-headers, repair], mandatory")
+ "command arg is one of [dump-raw-keys, dump-raw-key-vals, dump-objects, dump-objects-with-keys, check, dump-headers, repair, compact], mandatory")
("backend", po::value<string>(&backend),
"DB backend (default rocksdb)")
;
omap.state.v = 2;
omap.state.legacy = false;
omap.set_state();
+ } else if (cmd == "compact") {
+ omap.compact();
+ return 0;
} else {
std::cerr << "Did not recognize command " << cmd << std::endl;
r = 1;