Skip to content

Commit

Permalink
Fix ios compile
Browse files Browse the repository at this point in the history
Summary: We need to set contbuild for this :)

Test Plan: compiles

Reviewers: sdong, yhchiang, ljin

Reviewed By: ljin

Subscribers: leveldb

Differential Revision: https://reviews.facebook.net/D22701
  • Loading branch information
igorcanadi committed Sep 2, 2014
1 parent 7dcadb1 commit 990df99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions db/internal_stats.cc
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,11 @@ bool InternalStats::GetIntProperty(DBPropertyType property_type,
cfd_->imm()->current()->GetTotalNumEntries() +
current->GetEstimatedActiveKeys();
return true;
#ifndef ROCKSDB_LITE
case kIsFileDeletionEnabled:
*value = db->IsFileDeletionsEnabled();
return true;
#endif
default:
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion table/block_builder.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class BlockBuilder {

private:
const int block_restart_interval_;
const Comparator* comparator_;
const Comparator* comparator_ __attribute__((unused)); // only used in assert

std::string buffer_; // Destination buffer
std::vector<uint32_t> restarts_; // Restart points
Expand Down

0 comments on commit 990df99

Please sign in to comment.