summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/rs_rollback.h
diff options
context:
space:
mode:
authorWilliam Schultz <william.schultz@mongodb.com>2017-10-24 18:02:30 -0400
committerWilliam Schultz <william.schultz@mongodb.com>2017-10-24 18:09:42 -0400
commita4a94724dc82af8a314f98c2245d4e61233f56bf (patch)
treebdb631abdfd525963b46c7d4cff0788aa756eb9b /src/mongo/db/repl/rs_rollback.h
parent18007ba100d8716fea8925d373d61cb762a1e989 (diff)
downloadmongo-a4a94724dc82af8a314f98c2245d4e61233f56bf.tar.gz
SERVER-31047 Rollback properly removes redundant index operations
Diffstat (limited to 'src/mongo/db/repl/rs_rollback.h')
-rw-r--r--src/mongo/db/repl/rs_rollback.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/db/repl/rs_rollback.h b/src/mongo/db/repl/rs_rollback.h
index 265e3104a62..fade3074331 100644
--- a/src/mongo/db/repl/rs_rollback.h
+++ b/src/mongo/db/repl/rs_rollback.h
@@ -312,10 +312,9 @@ struct FixUpInfo {
void removeRedundantOperations();
/**
- * Removes any redundant index commands. An example is if we create
- * an index with name "a_1" and then later proceed to drop that index.
- * We return true if a redundant index command was found and false
- * if it was not.
+ * Removes any redundant index commands. For example, if we create an index with name "a_1" and
+ * then later proceed to drop that index, we can ignore the first index creation. We return true
+ * if a redundant index command was removed and false if it was not.
*/
bool removeRedundantIndexCommands(UUID uuid, std::string indexName);