summaryrefslogtreecommitdiff
path: root/src/mongo/db/clientcursor.h
diff options
context:
space:
mode:
authorHari Khalsa <hkhalsa@10gen.com>2013-11-01 16:24:55 -0400
committerHari Khalsa <hkhalsa@10gen.com>2013-11-06 10:01:33 -0500
commitdcd569ac549275cd3b81642325f63001cb33cd64 (patch)
treeec25fe1b74b36689093176efd2c4529649982420 /src/mongo/db/clientcursor.h
parent0f7bd3d2d308ea2c7c154977bde301c87129d0df (diff)
downloadmongo-dcd569ac549275cd3b81642325f63001cb33cd64.tar.gz
SERVER-10026 migrate clients
Diffstat (limited to 'src/mongo/db/clientcursor.h')
-rw-r--r--src/mongo/db/clientcursor.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/clientcursor.h b/src/mongo/db/clientcursor.h
index 8db847db4f8..073f883b4b2 100644
--- a/src/mongo/db/clientcursor.h
+++ b/src/mongo/db/clientcursor.h
@@ -63,6 +63,8 @@ namespace mongo {
ClientCursor(Runner* runner, int qopts = 0, const BSONObj query = BSONObj());
+ ClientCursor(const string& ns);
+
~ClientCursor();
/**
@@ -399,9 +401,10 @@ namespace mongo {
public:
ClientCursorPin( long long cursorid );
~ClientCursorPin();
+ // This just releases the pin, does not delete the underlying.
void release();
// Call this to delete the underlying ClientCursor.
- void free();
+ void deleteUnderlying();
ClientCursor *c() const;
private:
CursorId _cursorid;