diff options
author | Judah Schvimer <judah@mongodb.com> | 2018-03-12 14:47:40 -0400 |
---|---|---|
committer | Judah Schvimer <judah@mongodb.com> | 2018-03-12 14:47:40 -0400 |
commit | b1102c617e04ff751d702435f9d4521727e579e1 (patch) | |
tree | 0878af2c87cc855f833393c4323b623e6e1b3e31 /src/mongo/db/repl/storage_interface_mock.h | |
parent | ccaad4fb968b8a21a697c00362de5bb618bbb184 (diff) | |
download | mongo-b1102c617e04ff751d702435f9d4521727e579e1.tar.gz |
SERVER-33292 Have storage dictate where replication recovery should begin playing oplog from
Diffstat (limited to 'src/mongo/db/repl/storage_interface_mock.h')
-rw-r--r-- | src/mongo/db/repl/storage_interface_mock.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mongo/db/repl/storage_interface_mock.h b/src/mongo/db/repl/storage_interface_mock.h index 76acf703819..cd02935179f 100644 --- a/src/mongo/db/repl/storage_interface_mock.h +++ b/src/mongo/db/repl/storage_interface_mock.h @@ -285,10 +285,18 @@ public: Timestamp getInitialDataTimestamp() const; - Status recoverToStableTimestamp(ServiceContext* serviceCtx) override { + StatusWith<Timestamp> recoverToStableTimestamp(ServiceContext* serviceCtx) override { return Status{ErrorCodes::IllegalOperation, "recoverToStableTimestamp not implemented."}; } + bool supportsRecoverToStableTimestamp(ServiceContext* serviceCtx) const override { + return false; + } + + boost::optional<Timestamp> getRecoveryTimestamp(ServiceContext* serviceCtx) const override { + return boost::none; + } + Status isAdminDbValid(OperationContext* opCtx) override { return isAdminDbValidFn(opCtx); }; |