Skip to content

Commit

Permalink
Fix iOS compile
Browse files Browse the repository at this point in the history
  • Loading branch information
igorcanadi committed May 8, 2014
1 parent 044af85 commit a1a1f61
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion table/format.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,16 @@
namespace rocksdb {

extern const uint64_t kLegacyBlockBasedTableMagicNumber;
extern const uint64_t kLegacyPlainTableMagicNumber;
extern const uint64_t kBlockBasedTableMagicNumber;

#ifndef ROCKSDB_LITE
extern const uint64_t kLegacyPlainTableMagicNumber;
extern const uint64_t kPlainTableMagicNumber;
#else
// ROCKSDB_LITE doesn't have plain table
const uint64_t kLegacyPlainTableMagicNumber = 0;
const uint64_t kPlainTableMagicNumber = 0;
#endif

void BlockHandle::EncodeTo(std::string* dst) const {
// Sanity check that all fields have been set
Expand Down

0 comments on commit a1a1f61

Please sign in to comment.