ldb idump to support non-default column families. (#5594)

Summary:
ldb idump now only works for default column family. Extend it.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/5594

Test Plan: Compile and run the tool against a multiple CF DB.

Differential Revision: D16380684

fbshipit-source-id: bfb8af36fdad1806837c90aaaab492d71528aceb
main
sdong 5 years ago committed by Facebook Github Bot
parent abd1fdddef
commit 6bb3b4b567
  1. 3
      tools/ldb_cmd.cc

@ -1301,7 +1301,8 @@ void InternalDumpCommand::DoCommand() {
// Cast as DBImpl to get internal iterator
std::vector<KeyVersion> key_versions;
Status st = GetAllKeyVersions(db_, from_, to_, max_keys_, &key_versions);
Status st = GetAllKeyVersions(db_, GetCfHandle(), from_, to_, max_keys_,
&key_versions);
if (!st.ok()) {
exec_state_ = LDBCommandExecuteResult::Failed(st.ToString());
return;

Loading…
Cancel
Save