summaryrefslogtreecommitdiff
path: root/src/mongo/db/clientcursor.cpp
diff options
context:
space:
mode:
authorHari Khalsa <hkhalsa@10gen.com>2013-06-25 11:33:00 -0400
committerHari Khalsa <hkhalsa@10gen.com>2013-07-02 12:22:24 -0400
commita6766a1b1d9cdbcdad70ed1115e129bb0bb17366 (patch)
tree771e3525da03c5379867bd9d729997b40e8a0ba0 /src/mongo/db/clientcursor.cpp
parenta9226d98c4eb17a3dd1f34805335424d90aaf85a (diff)
downloadmongo-a6766a1b1d9cdbcdad70ed1115e129bb0bb17366.tar.gz
SERVER-8791 SERVER-9212 keep btree bucket deletion inside of btree class
Diffstat (limited to 'src/mongo/db/clientcursor.cpp')
-rw-r--r--src/mongo/db/clientcursor.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/mongo/db/clientcursor.cpp b/src/mongo/db/clientcursor.cpp
index af4cf615887..3d375b6984b 100644
--- a/src/mongo/db/clientcursor.cpp
+++ b/src/mongo/db/clientcursor.cpp
@@ -207,23 +207,6 @@ namespace mongo {
}
}
- /* must call when a btree bucket going away.
- note this is potentially slow
- */
- void ClientCursor::informAboutToDeleteBucket(const DiskLoc& b) {
- recursive_scoped_lock lock(ccmutex);
- Database *db = cc().database();
- CCByLoc& bl = db->ccByLoc();
- RARELY if ( bl.size() > 70 ) {
- log() << "perf warning: byLoc.size=" << bl.size() << " in aboutToDeleteBucket" << endl;
- }
- for ( CCByLoc::iterator i = bl.begin(); i != bl.end(); i++ )
- i->second->_c->aboutToDeleteBucket(b);
- }
- void aboutToDeleteBucket(const DiskLoc& b) {
- ClientCursor::informAboutToDeleteBucket(b);
- }
-
/* must call this on a delete so we clean up the cursors. */
void ClientCursor::aboutToDelete( const StringData& ns,
const NamespaceDetails* nsd,