diff options
author | gregs <greg@10gen.com> | 2011-11-01 18:26:05 -0400 |
---|---|---|
committer | gregs <greg@10gen.com> | 2011-11-01 18:42:28 -0400 |
commit | bcf4ca44072d45f4e8d87a3341350596ef54bff2 (patch) | |
tree | 442df02c2c075c20cd6b8c7f515fba3402591c7d /s | |
parent | aede6b131dceec59294500b7d73fe7d559e64ad0 (diff) | |
download | mongo-bcf4ca44072d45f4e8d87a3341350596ef54bff2.tar.gz |
force reload of config after two failed wbl checks SERVER-4118
Diffstat (limited to 's')
-rw-r--r-- | s/writeback_listener.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/s/writeback_listener.cpp b/s/writeback_listener.cpp index 5f320d3921f..222e81af5b8 100644 --- a/s/writeback_listener.cpp +++ b/s/writeback_listener.cpp @@ -216,7 +216,7 @@ namespace mongo { if ( gle["code"].numberInt() == 9517 ) { log() << "writeback failed because of stale config, retrying attempts: " << attempts << endl; - if( ! db->getChunkManagerIfExists( ns , true ) ){ + if( ! db->getChunkManagerIfExists( ns , true, attempts > 2 ) ){ uassert( 15884, str::stream() << "Could not reload chunk manager after " << attempts << " attempts.", attempts <= 4 ); sleepsecs( attempts - 1 ); } |