0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +01:00

better toString() for indexcursor

This commit is contained in:
unknown 2008-11-16 20:56:43 -05:00
parent cb1081beed
commit e227ff9bac

View File

@ -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();