Print user collected properties in sst_dump
Summary: Include a dump of user_collected_properties in sst_dump Closes https://github.com/facebook/rocksdb/pull/1668 Differential Revision: D4325078 Pulled By: IslamAbdelRahman fbshipit-source-id: 226b6d6
This commit is contained in:
parent
7004a6f7b8
commit
d71e728c7a
@ -591,6 +591,14 @@ int SSTDumpTool::Run(int argc, char** argv) {
|
||||
fprintf(stdout, " # merge operands: UNKNOWN\n");
|
||||
}
|
||||
}
|
||||
fprintf(stdout,
|
||||
"Raw user collected properties\n"
|
||||
"------------------------------\n");
|
||||
for (const auto& kv : table_properties->user_collected_properties) {
|
||||
std::string prop_name = kv.first;
|
||||
std::string prop_val = Slice(kv.second).ToString(true);
|
||||
fprintf(stdout, " # %s: 0x%s\n", prop_name.c_str(), prop_val.c_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user