diff options
author | William Schultz <william.schultz@mongodb.com> | 2017-10-24 18:02:30 -0400 |
---|---|---|
committer | William Schultz <william.schultz@mongodb.com> | 2017-10-24 18:09:42 -0400 |
commit | a4a94724dc82af8a314f98c2245d4e61233f56bf (patch) | |
tree | bdb631abdfd525963b46c7d4cff0788aa756eb9b /src/mongo/db/repl/rs_rollback.h | |
parent | 18007ba100d8716fea8925d373d61cb762a1e989 (diff) | |
download | mongo-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.h | 7 |
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); |