diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/s/chunk.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mongo/s/chunk.cpp b/src/mongo/s/chunk.cpp index 530e696ede2..ce3ce560e2b 100644 --- a/src/mongo/s/chunk.cpp +++ b/src/mongo/s/chunk.cpp @@ -156,14 +156,14 @@ namespace mongo { BSONObj res; WriteConcernOptions noThrottle; - massert(10412, - str::stream() << "moveAndCommit failed: " << res, - toMove->moveAndCommit(newLocation, - Chunk::MaxChunkSize, - &noThrottle, /* secondaryThrottle */ - false, /* waitForDelete - small chunk, no need */ - 0, /* maxTimeMS - don't time out */ - res)); + if (!toMove->moveAndCommit(newLocation, + Chunk::MaxChunkSize, + &noThrottle, /* secondaryThrottle */ + false, /* waitForDelete - small chunk, no need */ + 0, /* maxTimeMS - don't time out */ + res)) { + msgassertedNoTrace(10412, str::stream() << "moveAndCommit failed: " << res); + } // update our config manager.reload(); |