Skip to content

Commit 990df99

Browse files
committed
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
1 parent 7dcadb1 commit 990df99

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

db/internal_stats.cc

+2
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,11 @@ bool InternalStats::GetIntProperty(DBPropertyType property_type,
257257
cfd_->imm()->current()->GetTotalNumEntries() +
258258
current->GetEstimatedActiveKeys();
259259
return true;
260+
#ifndef ROCKSDB_LITE
260261
case kIsFileDeletionEnabled:
261262
*value = db->IsFileDeletionsEnabled();
262263
return true;
264+
#endif
263265
default:
264266
return false;
265267
}

table/block_builder.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class BlockBuilder {
5050

5151
private:
5252
const int block_restart_interval_;
53-
const Comparator* comparator_;
53+
const Comparator* comparator_ __attribute__((unused)); // only used in assert
5454

5555
std::string buffer_; // Destination buffer
5656
std::vector<uint32_t> restarts_; // Restart points

0 commit comments

Comments
 (0)