Clarify ldb column family argument
Summary: move the argument description to the right section, make it clearer that the '=' sign is required, and use it in one subcommand where it seemed forgotten before. Closes https://github.com/facebook/rocksdb/pull/1840 Differential Revision: D4515096 Pulled By: ajkr fbshipit-source-id: 7b5b1c1
This commit is contained in:
parent
d70ce7ee0b
commit
3b4ac8076b
@ -1770,7 +1770,7 @@ void ChangeCompactionStyleCommand::DoCommand() {
|
||||
// verify compaction result
|
||||
files_per_level = "";
|
||||
int num_files = 0;
|
||||
for (int i = 0; i < db_->NumberLevels(); i++) {
|
||||
for (int i = 0; i < db_->NumberLevels(GetCfHandle()); i++) {
|
||||
db_->GetProperty(GetCfHandle(),
|
||||
"rocksdb.num-files-at-level" + NumberToString(i),
|
||||
&property);
|
||||
|
@ -29,15 +29,15 @@ void LDBCommandRunner::PrintHelp(const char* exec_name) {
|
||||
" : Values are input/output as hex\n");
|
||||
ret.append(" --" + LDBCommand::ARG_HEX +
|
||||
" : Both keys and values are input/output as hex\n");
|
||||
ret.append(
|
||||
" --" + LDBCommand::ARG_CF_NAME +
|
||||
" : name of the column family to operate on. default: default column "
|
||||
"family\n");
|
||||
ret.append("\n");
|
||||
|
||||
ret.append(
|
||||
"The following optional parameters control the database "
|
||||
"internals:\n");
|
||||
ret.append(
|
||||
" --" + LDBCommand::ARG_CF_NAME +
|
||||
"=<string> : name of the column family to operate on. default: default "
|
||||
"column family\n");
|
||||
ret.append(" --" + LDBCommand::ARG_TTL +
|
||||
" with 'put','get','scan','dump','query','batchput'"
|
||||
" : DB supports ttl and value is internally timestamp-suffixed\n");
|
||||
|
Loading…
Reference in New Issue
Block a user