diff options
author | Andrew Morrow <acm@10gen.com> | 2013-08-05 14:46:01 -0400 |
---|---|---|
committer | Andrew Morrow <acm@10gen.com> | 2013-08-05 18:08:04 -0400 |
commit | 60110bef7f1cf4f01a87833e909147b35fb4c44e (patch) | |
tree | 2557fe4a5e3559451aa527ce86ef608197ad4401 /src/mongo/db/ops | |
parent | 1fa0480e4241d64c13d35c6777bca1599ba443eb (diff) | |
download | mongo-60110bef7f1cf4f01a87833e909147b35fb4c44e.tar.gz |
SERVER-10301 Fix badly named variable
Diffstat (limited to 'src/mongo/db/ops')
-rw-r--r-- | src/mongo/db/ops/update.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/ops/update.cpp b/src/mongo/db/ops/update.cpp index c22c9e3ecb7..c468748dfb2 100644 --- a/src/mongo/db/ops/update.cpp +++ b/src/mongo/db/ops/update.cpp @@ -558,7 +558,7 @@ namespace mongo { // // TODO: Old code checks this repeatedly within the update loop. Is that necessary? It seems // that once atomic should be always atomic. - const bool canYield = + const bool isolated = cursor->ok() && cursor->matcher() && cursor->matcher()->docMatcher().atomic(); @@ -609,7 +609,7 @@ namespace mongo { throw PageFaultException( cursor->currLoc().rec() ); } - if ( !canYield && debug.nscanned != 0 ) { + if ( !isolated && debug.nscanned != 0 ) { // We are permitted to yield. To do so we need a ClientCursor, so create one // now if we have not yet done so. |