From 1bd63cff41784082bcb456ad93272df691ec768b Mon Sep 17 00:00:00 2001 From: sdong Date: Thu, 31 Oct 2019 16:39:02 -0700 Subject: [PATCH] Fix two odd assertions. --- util/env_posix.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/util/env_posix.cc b/util/env_posix.cc index 8f9d88133..cbc51a730 100644 --- a/util/env_posix.cc +++ b/util/env_posix.cc @@ -377,7 +377,6 @@ class PosixMmapFile : public WritableFile { file_offset_(0), pending_sync_(false) { assert((page_size & (page_size - 1)) == 0); - assert(options.use_mmap_writes); } @@ -555,7 +554,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() {