summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-10-16 18:08:53 -0400
committerEliot Horowitz <eliot@10gen.com>2011-10-16 18:13:30 -0400
commit858d2ad0cd3ae6599ac362aa0beaa12adfe88032 (patch)
tree1df1dc101757dc5d1f1b767e5316d69cb11fc600 /db
parentb2910bcc5e55ee7d29f83476db0fd1c577690b71 (diff)
downloadmongo-858d2ad0cd3ae6599ac362aa0beaa12adfe88032.tar.gz
fix segfault after modifying indexes during yield SERVER-3961 3
Diffstat (limited to 'db')
-rw-r--r--db/queryutil.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/queryutil.h b/db/queryutil.h
index 104cde28e4a..5d86194fead 100644
--- a/db/queryutil.h
+++ b/db/queryutil.h
@@ -328,7 +328,7 @@ namespace mongo {
bool matchesElement( const BSONElement &e, int i, bool direction ) const;
bool matchesKey( const BSONObj &key ) const;
vector<FieldRange> _ranges;
- const IndexSpec &_indexSpec;
+ IndexSpec _indexSpec;
int _direction;
vector<BSONObj> _queries; // make sure mem owned
friend class FieldRangeVectorIterator;