Fix two odd assertions.

This commit is contained in:
sdong 2019-10-31 16:39:02 -07:00
parent 553274217d
commit 0c5d4f05ac

View File

@ -389,7 +389,6 @@ class PosixMmapFile : public WritableFile {
file_offset_(0),
pending_sync_(false) {
assert((page_size & (page_size - 1)) == 0);
assert(options.use_mmap_writes);
}
@ -567,7 +566,6 @@ class PosixWritableFile : public WritableFile {
pending_fsync_(false),
last_sync_size_(0),
bytes_per_sync_(options.bytes_per_sync) {
assert(!options.use_mmap_writes);
}
~PosixWritableFile() {