summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/storage_interface_mock.h
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2017-05-19 10:00:45 -0400
committerJudah Schvimer <judah@mongodb.com>2017-05-19 10:00:45 -0400
commita966f53f267c8f37ccbbc6008518befe14599582 (patch)
treee6d5e393c1f9fd14ac06a8d600fd72803bff0a9e /src/mongo/db/repl/storage_interface_mock.h
parent72000a222189cd0768d7213a9835b212dd2507b5 (diff)
downloadmongo-a966f53f267c8f37ccbbc6008518befe14599582.tar.gz
SERVER-29254 add findSingleton and putSingleton methods to StorageInterface
Diffstat (limited to 'src/mongo/db/repl/storage_interface_mock.h')
-rw-r--r--src/mongo/db/repl/storage_interface_mock.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mongo/db/repl/storage_interface_mock.h b/src/mongo/db/repl/storage_interface_mock.h
index 17a17b20b87..eaf888b036e 100644
--- a/src/mongo/db/repl/storage_interface_mock.h
+++ b/src/mongo/db/repl/storage_interface_mock.h
@@ -202,6 +202,17 @@ public:
opCtx, nss, indexName, scanDirection, startKey, boundInclusion, limit);
}
+ StatusWith<BSONObj> findSingleton(OperationContext* opCtx,
+ const NamespaceString& nss) override {
+ return Status{ErrorCodes::IllegalOperation, "findSingleton not implemented."};
+ }
+
+ Status putSingleton(OperationContext* opCtx,
+ const NamespaceString& nss,
+ const BSONObj& update) override {
+ return Status{ErrorCodes::IllegalOperation, "putSingleton not implemented."};
+ }
+
StatusWith<BSONObj> findById(OperationContext* opCtx,
const NamespaceString& nss,
const BSONElement& idKey) override {