summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/oplog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/oplog.cpp')
-rw-r--r--src/mongo/db/repl/oplog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/repl/oplog.cpp b/src/mongo/db/repl/oplog.cpp
index c9912315a4a..5ec26d17fea 100644
--- a/src/mongo/db/repl/oplog.cpp
+++ b/src/mongo/db/repl/oplog.cpp
@@ -520,9 +520,9 @@ namespace mongo {
if ( status.isOK() ) {
// yay
}
- else if ( status.code() == ErrorCodes::CannotCreateIndex &&
- status.location() == IndexOptionsDiffer ) {
- // SERVER-13206
+ else if ( status.code() == ErrorCodes::IndexOptionsConflict ||
+ status.code() == ErrorCodes::IndexKeySpecsConflict ) {
+ // SERVER-13206, SERVER-13496
// 2.4 (and earlier) will add an ensureIndex to an oplog if its ok or not
// so in 2.6+ where we do stricter validation, it will fail
// but we shouldn't care as the primary is responsible