0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +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 DiskLoc currLoc() { return !bucket.isNull() ? _currKeyNode().recordLoc : DiskLoc(); }
virtual Record* _current() { return currLoc().rec(); } virtual Record* _current() { return currLoc().rec(); }
virtual BSONObj current() { return BSONObj(_current()); } virtual BSONObj current() { return BSONObj(_current()); }
virtual const char * toString() { return "BtreeCursor"; } virtual const char * toString() {
return string("BtreeCursor ") + indexDetails.indexName();
}
private: private:
void checkUnused(); void checkUnused();