summaryrefslogtreecommitdiff
path: root/db/btree.h
diff options
context:
space:
mode:
Diffstat (limited to 'db/btree.h')
-rw-r--r--db/btree.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/btree.h b/db/btree.h
index c2652b26140..e82b38b6ce0 100644
--- a/db/btree.h
+++ b/db/btree.h
@@ -200,7 +200,7 @@ namespace mongo {
BSONObj endKey;
// BSONObj query; // the query we are working on in association with the cursor -- see noMoreMatches()
public:
- BtreeCursor(IndexDetails&, const BSONObj& startKey, int direction, const BSONObj& query);
+ BtreeCursor(const IndexDetails&, const BSONObj& startKey, int direction, const BSONObj& query);
virtual bool ok() {
return !bucket.isNull();
}
@@ -283,7 +283,7 @@ namespace mongo {
static string simpleRegexEnd( string regex );
- IndexDetails& indexDetails;
+ const IndexDetails& indexDetails;
BSONObj order;
DiskLoc bucket;
int keyOfs;