diff options
author | Randolph Tan <randolph@10gen.com> | 2015-01-22 11:34:18 -0500 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2015-01-22 14:06:04 -0500 |
commit | 78c3e1803f96d045e91bb2efb9163eee9f43d237 (patch) | |
tree | c108f167215d3f7133d7e10664059e5f60e1fcdf | |
parent | 4c83a604004c329ac114c53df38ac96421ebcf83 (diff) | |
download | mongo-78c3e1803f96d045e91bb2efb9163eee9f43d237.tar.gz |
SERVER-15691 acquiring balancer lock may fail and get stuck with concurrent write traffic
Make config.locks { ts: 1 } not unique
-rw-r--r-- | src/mongo/s/config.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/s/config.cpp b/src/mongo/s/config.cpp index df215c726d5..6917ea4c8b4 100644 --- a/src/mongo/s/config.cpp +++ b/src/mongo/s/config.cpp @@ -1164,11 +1164,11 @@ namespace mongo { warning() << "couldn't create host_1 index on config db" << causedBy(result); } - result = clusterCreateIndex( LocksType::ConfigNS, - BSON( LocksType::lockID() << 1 ), - true, // unique - WriteConcernOptions::AllConfigs, - NULL ); + result = clusterCreateIndex(LocksType::ConfigNS, + BSON(LocksType::lockID() << 1), + false, // unique + WriteConcernOptions::AllConfigs, + NULL); if (!result.isOK()) { warning() << "couldn't create lock id index on config db" << causedBy(result); |