main
Igor Canadi 10 years ago
parent 00211f9c5b
commit bcdb9671c0
  1. 12
      util/sst_dump_tool.cc

@ -6,6 +6,10 @@
#include "rocksdb/sst_dump_tool.h" #include "rocksdb/sst_dump_tool.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <map> #include <map>
#include <string> #include <string>
#include <vector> #include <vector>
@ -88,10 +92,10 @@ SstFileReader::SstFileReader(const std::string& file_path,
init_result_ = NewTableReader(file_name_); init_result_ = NewTableReader(file_name_);
} }
extern uint64_t kBlockBasedTableMagicNumber; extern const uint64_t kBlockBasedTableMagicNumber;
extern uint64_t kLegacyBlockBasedTableMagicNumber; extern const uint64_t kLegacyBlockBasedTableMagicNumber;
extern uint64_t kPlainTableMagicNumber; extern const uint64_t kPlainTableMagicNumber;
extern uint64_t kLegacyPlainTableMagicNumber; extern const uint64_t kLegacyPlainTableMagicNumber;
Status SstFileReader::NewTableReader(const std::string& file_path) { Status SstFileReader::NewTableReader(const std::string& file_path) {
uint64_t magic_number; uint64_t magic_number;

Loading…
Cancel
Save