Fix ios compile

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
This commit is contained in:
Igor Canadi 2014-09-02 10:50:15 -07:00
parent 7dcadb1d37
commit 990df99a61
2 changed files with 3 additions and 1 deletions

View File

@ -257,9 +257,11 @@ bool InternalStats::GetIntProperty(DBPropertyType property_type,
cfd_->imm()->current()->GetTotalNumEntries() + cfd_->imm()->current()->GetTotalNumEntries() +
current->GetEstimatedActiveKeys(); current->GetEstimatedActiveKeys();
return true; return true;
#ifndef ROCKSDB_LITE
case kIsFileDeletionEnabled: case kIsFileDeletionEnabled:
*value = db->IsFileDeletionsEnabled(); *value = db->IsFileDeletionsEnabled();
return true; return true;
#endif
default: default:
return false; return false;
} }

View File

@ -50,7 +50,7 @@ class BlockBuilder {
private: private:
const int block_restart_interval_; const int block_restart_interval_;
const Comparator* comparator_; const Comparator* comparator_ __attribute__((unused)); // only used in assert
std::string buffer_; // Destination buffer std::string buffer_; // Destination buffer
std::vector<uint32_t> restarts_; // Restart points std::vector<uint32_t> restarts_; // Restart points