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 11:05:53 +1000 |
commit | e00b7670f274bad696c3a6b89884895c9664031f (patch) | |
tree | a588b8f399f92697f14655de3ee421b420e85a24 | |
parent | e1092255d6168d90639f3f170537e42d09ab6c2e (diff) | |
download | mongo-e00b7670f274bad696c3a6b89884895c9664031f.tar.gz |
SERVER-36055 Return a proper error for unsupported compact on mobile
(cherry picked from commit 1c1535c9ee73ac4ed0d922855ccbe44335909082)
-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 4e62e87b29b..e016b604b7e 100644 --- a/src/mongo/db/storage/mobile/mobile_record_store.cpp +++ b/src/mongo/db/storage/mobile/mobile_record_store.cpp @@ -400,13 +400,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 d0771f0317a..e9612e648e0 100644 --- a/src/mongo/db/storage/mobile/mobile_record_store.h +++ b/src/mongo/db/storage/mobile/mobile_record_store.h @@ -97,18 +97,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, |