diff --git a/db/btree.h b/db/btree.h index 2b881626967..f121f0728fb 100644 --- a/db/btree.h +++ b/db/btree.h @@ -199,7 +199,9 @@ public: virtual DiskLoc currLoc() { return !bucket.isNull() ? _currKeyNode().recordLoc : DiskLoc(); } virtual Record* _current() { return currLoc().rec(); } virtual BSONObj current() { return BSONObj(_current()); } - virtual const char * toString() { return "BtreeCursor"; } + virtual const char * toString() { + return string("BtreeCursor ") + indexDetails.indexName(); + } private: void checkUnused();