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
main
sdong 9 years ago
parent 9c176ef90d
commit 3280ae9a29
  1. 6
      utilities/env_mirror.cc

@ -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…
Cancel
Save