summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/collection_cursor_cache.h
diff options
context:
space:
mode:
authorJason Rassi <rassi@10gen.com>2014-12-23 12:06:46 -0500
committerJason Rassi <rassi@10gen.com>2014-12-23 22:55:51 -0500
commit7494d33c77932db60fb8cdcc1abb178e67d8c60a (patch)
treee0f2a6bd2ca23f41a0044663c48a00ba07554cb4 /src/mongo/db/catalog/collection_cursor_cache.h
parent6105f06402fe1e7578d41f3e4e583a1476ef2455 (diff)
downloadmongo-7494d33c77932db60fb8cdcc1abb178e67d8c60a.tar.gz
SERVER-16520 ClientCursor keeps ptr to owning CollectionCursorCache
Changes ClientCursor::_collection to ClientCursor::_cursorCache, and updates ClientCursor/ClientCursorPin interfaces accordingly.
Diffstat (limited to 'src/mongo/db/catalog/collection_cursor_cache.h')
-rw-r--r--src/mongo/db/catalog/collection_cursor_cache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/catalog/collection_cursor_cache.h b/src/mongo/db/catalog/collection_cursor_cache.h
index 9b0de262ceb..e031c4abee1 100644
--- a/src/mongo/db/catalog/collection_cursor_cache.h
+++ b/src/mongo/db/catalog/collection_cursor_cache.h
@@ -54,6 +54,8 @@ namespace mongo {
// -----------------
+ std::string ns() { return _nss.ns(); }
+
/**
* @param collectionGoingAway Pass as true if the Collection instance is going away.
* This could be because the db is being closed, or the