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:
parent
cb1081beed
commit
e227ff9bac
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user