summaryrefslogtreecommitdiff
path: root/src/mongo/client/dbclient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/client/dbclient.cpp')
-rw-r--r--src/mongo/client/dbclient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/client/dbclient.cpp b/src/mongo/client/dbclient.cpp
index fc9f4fd36d6..49b782dd2de 100644
--- a/src/mongo/client/dbclient.cpp
+++ b/src/mongo/client/dbclient.cpp
@@ -712,7 +712,7 @@ void DBClientInterface::findN(vector<BSONObj>& out,
for (int i = 0; i < nToReturn; i++) {
if (!c->more())
break;
- out.push_back(c->nextSafe().copy());
+ out.push_back(c->nextSafeOwned());
}
}