Skip to content

Commit

Permalink
SERVER-13589 logOp inserts into system.indexes for index builds
Browse files Browse the repository at this point in the history
  • Loading branch information
milkie committed Apr 16, 2014
1 parent 29d7dcd commit 430cd62
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/mongo/db/commands/create_indexes.cpp
Expand Up @@ -201,13 +201,14 @@ namespace mongo {
appendCommandStatus( result, status );
return false;
}

if ( !fromRepl ) {
std::string systemIndexes = ns.getSystemIndexesCollection();
logOp( "i", systemIndexes.c_str(), spec );
}
}

result.append( "numIndexesAfter", collection->getIndexCatalog()->numIndexesTotal() );
if ( !fromRepl ) {
string cmdNs = ns.getCommandNS();
logOp( "c", cmdNs.c_str(), cmdObj );
}

return true;
}
Expand Down

0 comments on commit 430cd62

Please sign in to comment.