diff options
author | Judah Schvimer <judah@mongodb.com> | 2017-05-19 10:00:45 -0400 |
---|---|---|
committer | Judah Schvimer <judah@mongodb.com> | 2017-05-19 10:00:45 -0400 |
commit | a966f53f267c8f37ccbbc6008518befe14599582 (patch) | |
tree | e6d5e393c1f9fd14ac06a8d600fd72803bff0a9e /src/mongo/db/repl/storage_interface_impl.h | |
parent | 72000a222189cd0768d7213a9835b212dd2507b5 (diff) | |
download | mongo-a966f53f267c8f37ccbbc6008518befe14599582.tar.gz |
SERVER-29254 add findSingleton and putSingleton methods to StorageInterface
Diffstat (limited to 'src/mongo/db/repl/storage_interface_impl.h')
-rw-r--r-- | src/mongo/db/repl/storage_interface_impl.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/repl/storage_interface_impl.h b/src/mongo/db/repl/storage_interface_impl.h index f2f52ea4e5e..a41d0ae4584 100644 --- a/src/mongo/db/repl/storage_interface_impl.h +++ b/src/mongo/db/repl/storage_interface_impl.h @@ -123,6 +123,12 @@ public: BoundInclusion boundInclusion, std::size_t limit) override; + StatusWith<BSONObj> findSingleton(OperationContext* opCtx, const NamespaceString& nss) override; + + Status putSingleton(OperationContext* opCtx, + const NamespaceString& nss, + const BSONObj& update) override; + StatusWith<BSONObj> findById(OperationContext* opCtx, const NamespaceString& nss, const BSONElement& idKey) override; |