diff --git a/tools/ldb_cmd.cc b/tools/ldb_cmd.cc index 39bc6621c0ac3e4e9308bf7dac0bfc1611ffb831..d8912f81d789b7a76202a3aba463c7ea692e871b 100644 --- a/tools/ldb_cmd.cc +++ b/tools/ldb_cmd.cc @@ -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); diff --git a/tools/ldb_tool.cc b/tools/ldb_tool.cc index a2bee1d5deb977b74c63b8743033f1bad2101e5d..291cf56a18712317d093c81d57de71ec34425ce2 100644 --- a/tools/ldb_tool.cc +++ b/tools/ldb_tool.cc @@ -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 + + "= : 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");