summaryrefslogtreecommitdiff
path: root/src/mongo/db/clientcursor.h
diff options
context:
space:
mode:
authorDwight <dwight@10gen.com>2012-03-01 17:34:03 -0500
committerDwight <dwight@10gen.com>2012-03-01 17:34:03 -0500
commitbd40833c7e097f79d5ce90828d3fe1a065ca123e (patch)
treedcc344a496105c20bc694480e6ee269cf1b824cc /src/mongo/db/clientcursor.h
parentdf373d4ec0b8225f7c62f33040c12092bb9f0d1a (diff)
parent2e4f02012cff3e775a8e8ff432b034cbec885817 (diff)
downloadmongo-bd40833c7e097f79d5ce90828d3fe1a065ca123e.tar.gz
Merge remote branch 'main_readonly/master'
Diffstat (limited to 'src/mongo/db/clientcursor.h')
-rw-r--r--src/mongo/db/clientcursor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/clientcursor.h b/src/mongo/db/clientcursor.h
index 0351c594dde..40bb7483f0e 100644
--- a/src/mongo/db/clientcursor.h
+++ b/src/mongo/db/clientcursor.h
@@ -140,6 +140,7 @@ namespace mongo {
}
operator bool() { return _c; }
ClientCursor * operator-> () { return _c; }
+ /** Release ownership of the ClientCursor. */
void release() {
_c = 0;
_id = -1;