summaryrefslogtreecommitdiff
path: root/src/mongo/s/query/cluster_client_cursor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/query/cluster_client_cursor.h')
-rw-r--r--src/mongo/s/query/cluster_client_cursor.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/s/query/cluster_client_cursor.h b/src/mongo/s/query/cluster_client_cursor.h
index aca0f54c704..d4b89d74dfc 100644
--- a/src/mongo/s/query/cluster_client_cursor.h
+++ b/src/mongo/s/query/cluster_client_cursor.h
@@ -77,13 +77,13 @@ public:
virtual void kill(OperationContext* opCtx) = 0;
/**
- * Sets the operation context for the cursor. Must be called before the first call to next().
- * The cursor attaches to a new OperationContext on each getMore.
+ * Sets the operation context for the cursor.
*/
virtual void reattachToOperationContext(OperationContext* opCtx) = 0;
/**
- * Detaches the cursor from its current OperationContext.
+ * Detaches the cursor from its current OperationContext. Must be called before the
+ * OperationContext in use is deleted.
*/
virtual void detachFromOperationContext() = 0;