diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-08-04 10:19:45 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-08-04 10:19:45 -0400 |
commit | 0c7255753d2cdbefed6edf777e0b784bfb2834a9 (patch) | |
tree | dd7d11a5c80e96dc75f1dc67edb282a9a70a645e | |
parent | 33b7eb758b5cff2e35ee21e639e3bd7166d94e7b (diff) | |
download | mongo-0c7255753d2cdbefed6edf777e0b784bfb2834a9.tar.gz |
allow get last errors blocking on w to be killed
-rw-r--r-- | db/dbcommands.cpp | 1 |
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() ); } |