Commit Graph

159 Commits

Author SHA1 Message Date
dwight
53a69ce6c9 SERVER-3505 bindata in v1 indexes > 32 bytes fix 2011-08-04 19:01:49 -04:00
dwight
aacc4d5f8a compile 2011-07-05 11:14:09 -04:00
dwight
5961cc9ddc SERVER-984 sorting of infinity 2011-07-05 11:17:05 -04:00
dwight
5c83a738e0 copule more key tests 2011-07-01 12:39:50 -04:00
Aaron
4de924a3d9 SERVER-3222 min and max for type cleaning and fixes 2011-06-21 10:51:14 -07:00
Dwight
14711f4ef1 use legacy compare for legacy index building 2011-06-16 16:35:07 -04:00
dwight
6ff53f162e minor 2011-06-06 18:38:30 -04:00
dwight
bc9b23b14d towards signed dates 2011-06-06 08:17:55 -04:00
Eliot Horowitz
89887b2145 compile 2011-06-01 15:47:52 -04:00
Dwight
e104e01f84 use memcmp, not strcmp for comparing BSON strings 2011-06-01 14:57:40 -04:00
dwight
600f2eef36 SERVER-2935 fix woEqual which wasnt equalling ints and doubles 2011-06-01 09:35:42 -04:00
Eliot Horowitz
dbbb069e06 more compile fixes 2011-05-27 01:06:43 -04:00
dwight
7728a0a6e4 log less 2011-05-25 16:13:47 -04:00
dwight
8a0660ac31 use firstElementFieldName() 2011-05-23 20:03:19 -04:00
dwight
d5d8854eff test signed dates with Key 2011-05-15 11:10:38 -04:00
dwight
e7b06caec2 make Key::woEqual about 50% faster 2011-05-14 22:30:18 -04:00
dwight
f3cfb889da check we are in writelock on optime::now. also tune it a bit 2011-05-14 20:16:24 -04:00
dwight
ebbc72f17c set totalsize in bsonelement() if eoo element 2011-05-11 10:28:28 -04:00
dwight
871d923401 StackBufBuilder 2011-05-10 12:40:01 -04:00
Dwight
1bce317d2c add BinData to the Key class 2011-05-05 14:09:07 -04:00
Dwight
a6cceefeb7 versions for btree. checkpointing so far 2011-04-20 15:45:32 -04:00
Dwight
ede44430d1 compact index keys fix encoding for traditional encoding of complex ones 2011-04-20 12:07:08 -04:00
dwight
6b6dd6e45d new test 2011-04-20 09:23:39 -04:00
Dwight
4f2f00bba0 indexkey support strings with zeros. more work to do 2011-04-19 13:36:21 -04:00
Dwight
bab2182780 index key class KeyV1 close to done 2011-04-12 17:09:08 -04:00
Dwight
7c986e6432 indexkey work 2011-04-11 18:21:48 -04:00
Mathias Stearn
244b162111 Use intrusive_ptr rather than shared_ptr for BSONObj
Advantages:
* Owned BSONObj now uses 1 heap allocation rather than 3
* sizeof(BSONObj) is now 16 rather than 24 (on 64 bit)
* perftest bson shows it to be much faster

Change in BSONObj constructor API for owned case to make sure old code gets
updated to allocate room for the ref count. Anyone using BSONObjBuilder doesn't
need to worry about this change.
2011-04-03 20:50:45 -04:00
Eliot Horowitz
00d67d07a9 some tests for getFieldDotted 2011-01-17 15:32:40 -05:00
Eliot Horowitz
b828d21630 ran astyle SERVER-2304 2011-01-04 00:40:41 -05:00
Eliot Horowitz
aed49ae715 fix case where the same element is in $each part of $addToSet SERVER-2249 2010-12-19 01:36:41 -05:00
Alberto Lerner
dce215638a BSON( min << MINKEY << max << MAXKEY) is handy 2010-11-23 11:28:49 -05:00
Alberto Lerner
b82faa5421 eliminate duplicate test cases, merge left-over? 2010-11-23 11:17:45 -05:00
Aaron
78044d147a SERVER-1917 don't allow returning new element with appendAs 2010-10-10 15:09:40 -07:00
Aaron
75351ec80f bsonobjbuilder change appendAs interface 2010-10-01 17:42:35 -07:00
Eliot Horowitz
0b975c9734 turn off test that is different on windows 2010-08-09 00:28:06 -04:00
Eliot Horowitz
9dd3b21002 make BSONElement::toString 20x faster for double 2010-08-08 23:39:09 -04:00
Eliot Horowitz
9c95e894ee use checksum to make curop threadsafe SERVER-723 2010-07-29 01:08:20 -04:00
Eliot Horowitz
d3d978a601 remove assert that isn't always valid 2010-07-26 17:03:14 -04:00
Eliot Horowitz
87d7c92d6b test 2010-07-26 16:25:23 -04:00
Alberto Lerner
1d83bd2e99 SERVER-1269 TODO 2010-07-22 21:19:59 -04:00
Eliot Horowitz
9bc4aea8ba operator < > <= >= for BSONObj 2010-07-20 23:16:48 -04:00
Alberto Lerner
0370c1858e Adjust test case 2010-07-19 19:06:41 -04:00
Mathias Stearn
8047e6afb2 $or helper in C++ SERVER-1332 2010-07-19 13:42:09 -04:00
Alberto Lerner
f51a4d0669 SERVER-1270 Hook StringData to BufBuilder 2010-07-19 09:56:24 -04:00
dwight
c3b07d52ce git???? 2010-07-18 15:04:01 -04:00
Alberto Lerner
16e0a0b656 SERVER-1270 StringData unit test 2010-07-14 18:15:18 -04:00
Mathias Stearn
1fd7718267 BSONForEach test 2010-07-14 14:47:16 -04:00
Mathias Stearn
23a6d6a869 Start handling Nuls in strings. SERVER-1177 2010-06-25 17:34:27 -04:00
Eliot Horowitz
a7f063dc21 nicer way to create bson
BSONField<int> x("x");
     BSONObj o = BSON( x(5) );
     ASSERT_EQUALS( BSON( "x" << 5 ) , o );

     o = BSON( x.gt(5) );
     ASSERT_EQUALS( BSON( "x" << BSON( "$gt" << 5 ) ) , o );
2010-06-21 11:18:33 -04:00
Eliot Horowitz
be7b84c033 close subobj BSONObjBuilders automatically if they don't get closed cleanly 2010-06-10 16:00:37 -04:00