summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-08-04 10:19:45 -0400
committerEliot Horowitz <eliot@10gen.com>2010-08-04 10:19:45 -0400
commit0c7255753d2cdbefed6edf777e0b784bfb2834a9 (patch)
treedd7d11a5c80e96dc75f1dc67edb282a9a70a645e
parent33b7eb758b5cff2e35ee21e639e3bd7166d94e7b (diff)
downloadmongo-0c7255753d2cdbefed6edf777e0b784bfb2834a9.tar.gz
allow get last errors blocking on w to be killed
-rw-r--r--db/dbcommands.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/db/dbcommands.cpp b/db/dbcommands.cpp
index 582b04b8993..94edf0a3235 100644
--- a/db/dbcommands.cpp
+++ b/db/dbcommands.cpp
@@ -126,6 +126,7 @@ namespace mongo {
assert( sprintf( buf , "w block pass: %lld" , ++passes ) < 30 );
c.curop()->setMessage( buf );
sleepmillis(1);
+ killCurrentOp.checkForInterrupt();
}
result.appendNumber( "wtime" , t.millis() );
}