summaryrefslogtreecommitdiff
path: root/src/mongo/client/dbclientinterface.h
diff options
context:
space:
mode:
authorAllison Chang <allison.chang@10gen.com>2017-07-18 15:24:45 -0400
committerAllison Chang <allison.chang@10gen.com>2017-08-03 18:22:07 -0400
commit225c4d1a70b7756ee77fd404aab131bf1f1c9fce (patch)
tree08ea6109b64e7f15cc4aa8fc6ea5f1430cfcdd9b /src/mongo/client/dbclientinterface.h
parentc9daa25a50dee5c50ae2ac929cfd67dcdd95dd2a (diff)
downloadmongo-225c4d1a70b7756ee77fd404aab131bf1f1c9fce.tar.gz
SERVER-29667 Update rollback of document refetch to use UUIDs
Diffstat (limited to 'src/mongo/client/dbclientinterface.h')
-rw-r--r--src/mongo/client/dbclientinterface.h8
1 files changed, 8 insertions, 0 deletions
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