don't delete old chunk data until there aren't cursors iterating it SERVER-937

This commit is contained in:
Eliot Horowitz
2010-07-22 17:24:51 -04:00
parent aeb3276abc
commit 4308df6f3b
5 changed files with 64 additions and 14 deletions

View File

@@ -193,7 +193,7 @@ namespace mongo {
if ( doauth )
_auth( lockState );
{
if ( _client->_curOp->getOp() != dbGetMore ){ // getMore's are special and should be handled else where
string errmsg;
if ( ! shardVersionOk( _ns , errmsg ) ){
msgasserted( StaleConfigInContextCode , (string)"shard version not ok in Client::Context: " + errmsg );