gregs
71bfe09686
allow appending elements to BSONObjBuilders
2011-10-04 11:27:41 -04:00
Mathias Stearn
4d8cd672bb
Don't try to backfill more than 1.5M array elements SERVER-3750
2011-09-01 20:29:22 -04:00
Eliot Horowitz
8f27050318
in headers at least put using namespace in mongo namespace SERVER-1268
2011-07-27 09:48:35 -04:00
dwight
7f37213fc9
bson package tweaking
2011-06-28 01:44:43 -04:00
gregs
1cc69e30ad
be smarter about the pids we look for when cleaning old locks.
2011-06-03 17:58:26 -04:00
dwight
3776dc77f1
eliminate null char from string Keys to save a little space
2011-05-08 22:41:13 -04:00
Dwight
a3cd52048a
Merge branch 'master' into main
...
Conflicts:
SConstruct
db/btree.h
db/db.vcxproj.filters
db/dbcommands_admin.cpp
db/geo/2d.cpp
db/pdfile.cpp
dbtests/test.vcxproj.filters
2011-05-03 15:53:27 -04:00
Dwight
79b8999754
fix a bug in appendNumber
2011-04-12 16:11:10 -04:00
Dwight
7c986e6432
indexkey work
2011-04-11 18:21:48 -04:00
Mathias Stearn
d2fbf3f5c3
docs for subobjStart
2011-04-05 19:18:21 -04:00
Mathias Stearn
33f74634e4
Make numStr safe in static init SERVER-2697
2011-04-04 12:05:43 -04:00
Mathias Stearn
6d52227ae7
Treat initsize as object size rather than buffer size. Makes wrap() faster.
2011-04-03 22:32:00 -04:00
Mathias Stearn
2b23df9f52
windows compile
2011-04-03 21:21:26 -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
Mathias Stearn
e59799f079
Better BSONArrayBuilder::sub{obj,array}Start SERVER-2098
2011-03-31 17:31:43 -04:00
Eliot Horowitz
34de75445d
some BSONObjBuilder helpers for accessing data whilebuilding
2011-01-21 14:19:49 -05:00
Eliot Horowitz
b828d21630
ran astyle SERVER-2304
2011-01-04 00:40:41 -05:00
Eliot Horowitz
4e76652538
fix some type conversion warnings SERVER-2251
2010-12-23 15:04:39 -05:00
Eliot Horowitz
2da179f9a7
BONObjBuilder::append( const StringData& fieldName, string str), second argument should be passed by const& SERVER-2224
2010-12-15 00:36:52 -05:00
dwight
eb5ac64eeb
comment
2010-11-30 08:46:51 -05:00
dwight
47b43cea41
comment was wrong
2010-11-30 08:21:50 -05:00
Eliot Horowitz
0dbcd449c6
comments on obj() and arr()
2010-10-25 02:41:57 -04:00
Eliot Horowitz
738b686c12
way to get len() on BSON(Obj|Array)Builder
2010-10-17 22:29:12 -04:00
Aaron
78044d147a
SERVER-1917 don't allow returning new element with appendAs
2010-10-10 15:09:40 -07:00
Eliot Horowitz
09d965b418
initial buffer size for BSONArrayBuilder
2010-10-09 21:57:57 -04:00
Eliot Horowitz
e3e3a22e8d
remove some extraneous c_str
2010-10-09 11:01:50 -04:00
Aaron
75351ec80f
bsonobjbuilder change appendAs interface
2010-10-01 17:42:35 -07:00
Aaron
2a4c95a3f4
SERVER-394 bsonobjbuilder allow returning newly appended element, in one case
2010-09-29 11:14:53 -07:00
Alberto Lerner
7a7cc4adfa
SERVER-1452 StringData-ing up, c_str()-ing down
2010-08-18 18:12:31 -04:00
Eliot Horowitz
5663169f5f
fix 32-bit compile
2010-08-18 10:03:08 -04:00
Eliot Horowitz
a054706d1e
appendNumber unsizned, size_t
2010-08-18 09:47:51 -04:00
Eliot Horowitz
cd2d06fa73
typo
2010-07-29 09:43:36 -04:00
Eliot Horowitz
421ff50975
appendObject for raw char* appending
2010-07-29 01:07:22 -04:00
Mathias Stearn
585b3797ff
use less stringstream in bson
2010-07-27 17:18:43 -04:00
Andrew C. Morrow
8443231430
fast done capability for BSONObjBuilder
2010-07-27 09:32:46 +08:00
Eliot Horowitz
91cc690bb9
don't build string for uassert in bson since uassert there isn't a macro
2010-07-26 16:10:37 -04:00
Alberto Lerner
67710484c1
SERVER-1270 Missed one call in BSONObjBuilder
2010-07-20 12:29:29 -04:00
Alberto Lerner
27dde175e0
SERVER-1270 Hook StringData to BSONObjBuilder
2010-07-20 11:15:06 -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
db5aafcd11
rs fixes
2010-07-14 15:08:59 -04:00
Mathias Stearn
13c6875815
temporarily Revert "git rid of "operator string""
...
This reverts commit 95fa51a1df .
2010-07-07 01:22:33 -04:00
Mathias Stearn
95fa51a1df
git rid of "operator string"
2010-07-07 00:30:17 -04:00
Alberto Lerner
cc37c07bb5
SERVER-1270 Make it a bit faster for std::string's
2010-07-06 20:33:59 -04:00
Dwight
df99ec85df
elim warnings on widnows compile
2010-06-29 11:28:20 -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
49122f7d6c
fix json parser cleanup
2010-06-12 23:28:38 -04:00
Eliot Horowitz
be7b84c033
close subobj BSONObjBuilders automatically if they don't get closed cleanly
2010-06-10 16:00:37 -04:00
dwight
23882959f5
switch default subtype to 0 for BinData bson
2010-06-09 11:00:43 -04:00