summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/storage_interface_mock.h
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2017-04-18 23:50:02 -0400
committerBenety Goh <benety@mongodb.com>2017-04-19 15:49:43 -0400
commit6dfa595dda5e67f44daedccabf2ece86d6f0b52b (patch)
treea5073c995b6ba0a6e4ba8199882636eefbe0ffce /src/mongo/db/repl/storage_interface_mock.h
parentebd361aae87504474e7db011f08da7aeb0923167 (diff)
downloadmongo-6dfa595dda5e67f44daedccabf2ece86d6f0b52b.tar.gz
SERVER-28211 add StorageInterface::findById()
Diffstat (limited to 'src/mongo/db/repl/storage_interface_mock.h')
-rw-r--r--src/mongo/db/repl/storage_interface_mock.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/repl/storage_interface_mock.h b/src/mongo/db/repl/storage_interface_mock.h
index 6f13b68abe2..f6df26cd2df 100644
--- a/src/mongo/db/repl/storage_interface_mock.h
+++ b/src/mongo/db/repl/storage_interface_mock.h
@@ -199,6 +199,12 @@ public:
opCtx, nss, indexName, scanDirection, startKey, boundInclusion, limit);
}
+ StatusWith<BSONObj> findById(OperationContext* opCtx,
+ const NamespaceString& nss,
+ const BSONElement& idKey) override {
+ return Status{ErrorCodes::IllegalOperation, "findById not implemented."};
+ }
+
Status upsertById(OperationContext* opCtx,
const NamespaceString& nss,
const BSONElement& idKey,