summaryrefslogtreecommitdiff
path: root/db/clientcursor.h
diff options
context:
space:
mode:
Diffstat (limited to 'db/clientcursor.h')
-rw-r--r--db/clientcursor.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/db/clientcursor.h b/db/clientcursor.h
index c585bb25663..f1d107fb6d9 100644
--- a/db/clientcursor.h
+++ b/db/clientcursor.h
@@ -91,6 +91,13 @@ namespace mongo {
_c = 0;
}
}
+ /**
+ * call this if during a yield, the cursor got deleted
+ * if so, we don't want to use the point address
+ */
+ void deleted() {
+ _c = 0;
+ }
~Pointer() { release(); }
Pointer(long long cursorid) {
recursive_scoped_lock lock(ccmutex);