mirror of
https://github.com/matrix-construct/construct
synced 2024-09-28 19:58:53 +02:00
modules/console: Add db stats convenience command to passthru to prop rocksdb.stats.
This commit is contained in:
parent
12957038f7
commit
359ff91316
1 changed files with 16 additions and 0 deletions
|
@ -772,6 +772,22 @@ catch(const std::out_of_range &e)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
console_cmd__db__stats(opt &out, const string_view &line)
|
||||
{
|
||||
const params param{line, " ",
|
||||
{
|
||||
"dbname", "column"
|
||||
}};
|
||||
|
||||
return console_cmd__db__prop(out, fmt::snstringf
|
||||
{
|
||||
1024, "%s %s rocksdb.stats",
|
||||
param.at(0),
|
||||
param.at(1)
|
||||
});
|
||||
}
|
||||
|
||||
bool
|
||||
console_cmd__db__files(opt &out, const string_view &line)
|
||||
try
|
||||
|
|
Loading…
Reference in a new issue