diff options
author | Allison Chang <allison.chang@10gen.com> | 2017-07-18 14:11:10 -0400 |
---|---|---|
committer | Allison Chang <allison.chang@10gen.com> | 2017-07-26 16:34:50 -0400 |
commit | 34559a9803eb2e987745d6e02ff62d435e471f6a (patch) | |
tree | 3fc590f4245f9d6203c32b789e22f36c43ca4314 /src/mongo/db/repl/rollback_source.h | |
parent | edfe3f3b1276ef3598b1af673d088e6b5c4b3ad5 (diff) | |
download | mongo-34559a9803eb2e987745d6e02ff62d435e471f6a.tar.gz |
SERVER-29665 Update rollback of collMod commands to use UUIDs
Diffstat (limited to 'src/mongo/db/repl/rollback_source.h')
-rw-r--r-- | src/mongo/db/repl/rollback_source.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/mongo/db/repl/rollback_source.h b/src/mongo/db/repl/rollback_source.h index 7f264ee6a0c..cafba0eb74c 100644 --- a/src/mongo/db/repl/rollback_source.h +++ b/src/mongo/db/repl/rollback_source.h @@ -32,6 +32,7 @@ #include "mongo/base/status_with.h" #include "mongo/db/jsobj.h" #include "mongo/util/net/hostandport.h" +#include "mongo/util/uuid.h" namespace mongo { @@ -86,7 +87,15 @@ public: const NamespaceString& nss) const = 0; /** - * Returns collection info. + * Finds and returns collection info using the UUID. + */ + virtual StatusWith<BSONObj> getCollectionInfoByUUID(const std::string& db, + const UUID& uuid) const = 0; + + /** + * Finds and returns collection info using the namespace. + * TODO: After MongoDB 3.6 is released, we will remove this function as it is only + * necessary for rollback with no uuid oplogs. See SERVER-29766. */ virtual StatusWith<BSONObj> getCollectionInfo(const NamespaceString& nss) const = 0; }; |