diff options
author | Sulabh Mahajan <sulabh.mahajan@mongodb.com> | 2018-07-23 10:43:11 +1000 |
---|---|---|
committer | Sulabh Mahajan <sulabh.mahajan@mongodb.com> | 2018-07-23 10:43:11 +1000 |
commit | 1c1535c9ee73ac4ed0d922855ccbe44335909082 (patch) | |
tree | 895fe96b34c2b331dbd35e05420e4ac4d665e88a /src/mongo/db/storage/mobile | |
parent | 69f3e89f6921fc4ff2b5413952eeb517af69bb83 (diff) | |
download | mongo-1c1535c9ee73ac4ed0d922855ccbe44335909082.tar.gz |
SERVER-36055 Return a proper error for unsupported compact on mobile
Diffstat (limited to 'src/mongo/db/storage/mobile')
-rw-r--r-- | src/mongo/db/storage/mobile/mobile_record_store.cpp | 7 | ||||
-rw-r--r-- | src/mongo/db/storage/mobile/mobile_record_store.h | 9 |
2 files changed, 2 insertions, 14 deletions
diff --git a/src/mongo/db/storage/mobile/mobile_record_store.cpp b/src/mongo/db/storage/mobile/mobile_record_store.cpp index 2e1aed4c5e2..fd307aa790a 100644 --- a/src/mongo/db/storage/mobile/mobile_record_store.cpp +++ b/src/mongo/db/storage/mobile/mobile_record_store.cpp @@ -401,13 +401,6 @@ Status MobileRecordStore::truncate(OperationContext* opCtx) { return Status::OK(); } -Status MobileRecordStore::compact(OperationContext* opCtx, - RecordStoreCompactAdaptor* adaptor, - const CompactOptions* options, - CompactStats* stats) { - return Status::OK(); -} - /** * Note: on full validation, this validates the entire database file, not just the table used by * this record store. diff --git a/src/mongo/db/storage/mobile/mobile_record_store.h b/src/mongo/db/storage/mobile/mobile_record_store.h index ec8ab13aa2e..60d4a844386 100644 --- a/src/mongo/db/storage/mobile/mobile_record_store.h +++ b/src/mongo/db/storage/mobile/mobile_record_store.h @@ -95,18 +95,13 @@ public: } bool compactSupported() const override { - return true; + return false; } bool compactsInPlace() const override { - return true; + return false; } - Status compact(OperationContext* opCtx, - RecordStoreCompactAdaptor* adaptor, - const CompactOptions* options, - CompactStats* stats) override; - Status validate(OperationContext* opCtx, ValidateCmdLevel level, ValidateAdaptor* adaptor, |