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
main
Islam AbdelRahman 8 years ago committed by Facebook Github Bot
parent 7004a6f7b8
commit d71e728c7a
  1. 8
      tools/sst_dump_tool.cc

@ -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…
Cancel
Save