From 6dfa595dda5e67f44daedccabf2ece86d6f0b52b Mon Sep 17 00:00:00 2001 From: Benety Goh Date: Tue, 18 Apr 2017 23:50:02 -0400 Subject: SERVER-28211 add StorageInterface::findById() --- src/mongo/db/repl/storage_interface.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/mongo/db/repl/storage_interface.h') diff --git a/src/mongo/db/repl/storage_interface.h b/src/mongo/db/repl/storage_interface.h index 020135634d9..2cc34104b83 100644 --- a/src/mongo/db/repl/storage_interface.h +++ b/src/mongo/db/repl/storage_interface.h @@ -262,6 +262,15 @@ public: BoundInclusion boundInclusion, std::size_t limit) = 0; + /** + * Finds a single document in the collection referenced by the specified _id. + * + * Not supported on collections with a default collation. + */ + virtual StatusWith findById(OperationContext* opCtx, + const NamespaceString& nss, + const BSONElement& idKey) = 0; + /** * Updates a single document in the collection referenced by the specified _id. * The document is located by looking up "idKey" in the id index. -- cgit v1.2.1