diff options
author | Benety Goh <benety@mongodb.com> | 2017-04-18 23:50:02 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2017-04-19 15:49:43 -0400 |
commit | 6dfa595dda5e67f44daedccabf2ece86d6f0b52b (patch) | |
tree | a5073c995b6ba0a6e4ba8199882636eefbe0ffce /src/mongo/db/repl/storage_interface.h | |
parent | ebd361aae87504474e7db011f08da7aeb0923167 (diff) | |
download | mongo-6dfa595dda5e67f44daedccabf2ece86d6f0b52b.tar.gz |
SERVER-28211 add StorageInterface::findById()
Diffstat (limited to 'src/mongo/db/repl/storage_interface.h')
-rw-r--r-- | src/mongo/db/repl/storage_interface.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 @@ -263,6 +263,15 @@ public: 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<BSONObj> 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. * "update" represents the replacement document or list of requested modifications to be applied |