summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeert Bosch <geert@mongodb.com>2017-03-17 09:49:52 +1100
committerMaria van Keulen <maria@mongodb.com>2017-04-25 11:15:18 -0400
commit832a7d29e80806f71afc1cd6116386cd43cf463e (patch)
treef6ba6cc18fa2a3750eea5414322fb055bdd436b7
parentf83d377d44dcdcb4cb15501a554918ef907937df (diff)
downloadmongo-832a7d29e80806f71afc1cd6116386cd43cf463e.tar.gz
SERVER-28357 Do not enforce quota on starting MMAPv1 compact
(cherry picked from commit d3e35fc16a7654a83db9f3daa5f4c356c5105246)
-rw-r--r--src/mongo/db/storage/mmap_v1/record_store_v1_simple.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/storage/mmap_v1/record_store_v1_simple.cpp b/src/mongo/db/storage/mmap_v1/record_store_v1_simple.cpp
index a0c1a7a4ad4..8595bc2a4c6 100644
--- a/src/mongo/db/storage/mmap_v1/record_store_v1_simple.cpp
+++ b/src/mongo/db/storage/mmap_v1/record_store_v1_simple.cpp
@@ -452,7 +452,8 @@ Status SimpleRecordStoreV1::compact(OperationContext* txn,
_details->setLastExtentSize(txn, 0);
// create a new extent so new records go there
- increaseStorageSize(txn, _details->lastExtentSize(txn), true);
+ const bool enforceQuota = false;
+ increaseStorageSize(txn, _details->lastExtentSize(txn), enforceQuota);
wunit.commit();
}