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
This commit is contained in:
parent
abd1fdddef
commit
6bb3b4b567
@ -1301,7 +1301,8 @@ void InternalDumpCommand::DoCommand() {
|
|||||||
|
|
||||||
// Cast as DBImpl to get internal iterator
|
// Cast as DBImpl to get internal iterator
|
||||||
std::vector<KeyVersion> key_versions;
|
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()) {
|
if (!st.ok()) {
|
||||||
exec_state_ = LDBCommandExecuteResult::Failed(st.ToString());
|
exec_state_ = LDBCommandExecuteResult::Failed(st.ToString());
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user