Skip to content

Commit

Permalink
more debugging for buildbot
Browse files Browse the repository at this point in the history
  • Loading branch information
erh committed May 19, 2011
1 parent cd0dbaf commit 2c1fa43
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion s/strategy_shard.cpp
Expand Up @@ -167,9 +167,15 @@ namespace mongo {
break;
}
catch ( StaleConfigException& e ) {
log( i < ( maxTries / 2 ) ) << "retrying insert because of StaleConfigException: " << e << " object: " << o << endl;
int logLevel = i < ( maxTries / 2 );
LOG( logLevel ) << "retrying insert because of StaleConfigException: " << e << " object: " << o << endl;
r.reset();

unsigned long long old = manager->getSequenceNumber();
manager = r.getChunkManager();

LOG( logLevel ) << " sequenece number - old: " << old << " new: " << manager->getSequenceNumber() << endl;

uassert(14804, "collection no longer sharded", manager);
}
sleepmillis( i * 200 );
Expand Down

0 comments on commit 2c1fa43

Please sign in to comment.