diff options
author | Scott Hernandez <scotthernandez@gmail.com> | 2015-06-05 16:30:49 -0400 |
---|---|---|
committer | Scott Hernandez <scotthernandez@gmail.com> | 2015-06-05 20:51:01 -0400 |
commit | 503731032f19d5fea414442bf891a3a8bfe76759 (patch) | |
tree | 6b9301f25844328b31c179b298822ecf8ac1aee8 /src/mongo/db/repl/collection_cloner.h | |
parent | 99efb5fc4f771feb8ae81434b4e2d6f7445665e1 (diff) | |
download | mongo-503731032f19d5fea414442bf891a3a8bfe76759.tar.gz |
SERVER-18039: Add Initial Sync to DataReplicator
Diffstat (limited to 'src/mongo/db/repl/collection_cloner.h')
-rw-r--r-- | src/mongo/db/repl/collection_cloner.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mongo/db/repl/collection_cloner.h b/src/mongo/db/repl/collection_cloner.h index f4f9d9867ec..5dccb2e21ba 100644 --- a/src/mongo/db/repl/collection_cloner.h +++ b/src/mongo/db/repl/collection_cloner.h @@ -244,6 +244,20 @@ namespace repl { virtual Status commitCollection(OperationContext* txn, const NamespaceString& nss) = 0; + /** + * Inserts missing document into a collection (not related to insertDocuments above), + * during initial sync retry logic + */ + virtual Status insertMissingDoc(OperationContext* txn, + const NamespaceString& nss, + const BSONObj& doc) = 0; + + /** + * Inserts missing document into a collection (not related to insertDocuments above), + * during initial sync retry logic + */ + virtual Status dropUserDatabases(OperationContext* txn) = 0; + }; } // namespace repl |