summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/rollback_source.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/db/repl/rollback_source.h
parentc9daa25a50dee5c50ae2ac929cfd67dcdd95dd2a (diff)
downloadmongo-225c4d1a70b7756ee77fd404aab131bf1f1c9fce.tar.gz
SERVER-29667 Update rollback of document refetch to use UUIDs
Diffstat (limited to 'src/mongo/db/repl/rollback_source.h')
-rw-r--r--src/mongo/db/repl/rollback_source.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mongo/db/repl/rollback_source.h b/src/mongo/db/repl/rollback_source.h
index cafba0eb74c..0c55bcb9ae2 100644
--- a/src/mongo/db/repl/rollback_source.h
+++ b/src/mongo/db/repl/rollback_source.h
@@ -76,11 +76,18 @@ public:
virtual BSONObj getLastOperation() const = 0;
/**
- * Fetch a single document from the sync source.
+ * Fetch a single document from the sync source using the namespace.
*/
virtual BSONObj findOne(const NamespaceString& nss, const BSONObj& filter) const = 0;
/**
+ * Fetch a single document from the sync source using the UUID.
+ */
+ virtual BSONObj findOneByUUID(const std::string& db,
+ UUID uuid,
+ const BSONObj& filter) const = 0;
+
+ /**
* Clones a single collection from the sync source.
*/
virtual void copyCollectionFromRemote(OperationContext* opCtx,