diff options
author | Jason Rassi <rassi@10gen.com> | 2013-10-11 18:46:06 -0700 |
---|---|---|
committer | Jason Rassi <rassi@10gen.com> | 2013-10-11 18:46:06 -0700 |
commit | 3a2776f0d66a03cd2c8de51117e14a0afffb716e (patch) | |
tree | 000ea70232feaf5a1a01dfa765af2c940a0500b4 /src/mongo | |
parent | 0b19be208f91e70c683d60c22011cad14a9fa78c (diff) | |
download | mongo-3a2776f0d66a03cd2c8de51117e14a0afffb716e.tar.gz |
SERVER-10471 Correctly save result of function call in newRunQuery
Return value of getRunner() was being discarded by destruction of
shadow variable.
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/db/query/new_find.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/query/new_find.cpp b/src/mongo/db/query/new_find.cpp index dfac2b653fc..38ff708df6a 100644 --- a/src/mongo/db/query/new_find.cpp +++ b/src/mongo/db/query/new_find.cpp @@ -541,7 +541,7 @@ namespace mongo { } else { // Takes ownership of cq. - Status status = getRunner(cq, &rawRunner); + status = getRunner(cq, &rawRunner); } if (!status.isOK()) { |