diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-05-11 23:44:14 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-05-11 23:44:14 -0400 |
commit | 66683609c56bb79f117c6ac6cc0d7ea2410acb45 (patch) | |
tree | f693aef05ad5878108fe8d6900e4e93053411c2c /s/balance.cpp | |
parent | efe3870c618ad0ce0d6a75bb4f016f400a9aa589 (diff) | |
download | mongo-66683609c56bb79f117c6ac6cc0d7ea2410acb45.tar.gz |
some debugging for SERVER-1109
Diffstat (limited to 's/balance.cpp')
-rw-r--r-- | s/balance.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/s/balance.cpp b/s/balance.cpp index fbb58da06fe..84b99c99123 100644 --- a/s/balance.cpp +++ b/s/balance.cpp @@ -164,7 +164,10 @@ namespace mongo { assert( cm ); Chunk& c = cm->findChunk( chunkToMove["min"].Obj() ); - assert( c.getMin().woCompare( chunkToMove["min"].Obj() ) == 0 ); + if ( c.getMin().woCompare( chunkToMove["min"].Obj() ) ){ + log() << "balancer: weird chunk issue c: " << c << " min: " << chunkToMove["min"].Obj() << endl; + assert( c.getMin().woCompare( chunkToMove["min"].Obj() ) == 0 ); + } string errmsg; if ( c.moveAndCommit( Shard::make( to ) , errmsg ) ){ |