From a4a94724dc82af8a314f98c2245d4e61233f56bf Mon Sep 17 00:00:00 2001 From: William Schultz Date: Tue, 24 Oct 2017 18:02:30 -0400 Subject: SERVER-31047 Rollback properly removes redundant index operations --- src/mongo/db/repl/rs_rollback.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/mongo/db/repl/rs_rollback.h') 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); -- cgit v1.2.1