Fix warning in release
Summary: Warning in release build. Test Plan: Make release and make all Subscribers: leveldb, dhruba Differential Revision: https://reviews.facebook.net/D52305
This commit is contained in:
parent
9c176ef90d
commit
3280ae9a29
|
@ -147,8 +147,7 @@ class WritableFileMirror : public WritableFile {
|
|||
}
|
||||
bool IsSyncThreadSafe() const override {
|
||||
bool as = a_->IsSyncThreadSafe();
|
||||
bool bs = b_->IsSyncThreadSafe();
|
||||
assert(as == bs);
|
||||
assert(as == b_->IsSyncThreadSafe());
|
||||
return as;
|
||||
}
|
||||
void SetIOPriority(Env::IOPriority pri) override {
|
||||
|
@ -161,8 +160,7 @@ class WritableFileMirror : public WritableFile {
|
|||
}
|
||||
uint64_t GetFileSize() override {
|
||||
uint64_t as = a_->GetFileSize();
|
||||
uint64_t bs = b_->GetFileSize();
|
||||
assert(as == bs);
|
||||
assert(as == b_->GetFileSize());
|
||||
return as;
|
||||
}
|
||||
void GetPreallocationStatus(size_t* block_size,
|
||||
|
|
Loading…
Reference in New Issue
Block a user