From 225c4d1a70b7756ee77fd404aab131bf1f1c9fce Mon Sep 17 00:00:00 2001 From: Allison Chang Date: Tue, 18 Jul 2017 15:24:45 -0400 Subject: SERVER-29667 Update rollback of document refetch to use UUIDs --- src/mongo/client/dbclientinterface.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/mongo/client/dbclientinterface.h') diff --git a/src/mongo/client/dbclientinterface.h b/src/mongo/client/dbclientinterface.h index ab9a4864cb6..f57618bca00 100644 --- a/src/mongo/client/dbclientinterface.h +++ b/src/mongo/client/dbclientinterface.h @@ -198,6 +198,14 @@ public: const BSONObj* fieldsToReturn = 0, int queryOptions = 0); + /** + * @return a single object that matches the filter within the collection specified by the UUID. + * If the command fails, an assertion error is thrown. Otherwise, if no document matches + * the query, an empty BSONObj is returned. + * @throws AssertionException + */ + virtual BSONObj findOneByUUID(const std::string& db, UUID uuid, const BSONObj& filter); + virtual std::string getServerAddress() const = 0; /** helper function. run a simple command where the command expression is simply -- cgit v1.2.1