Commit Graph

117 Commits

Author SHA1 Message Date
dwight
684486e7e0 towards vcxproj compile 2010-07-28 14:46:13 -04:00
Andrew C. Morrow
6239b1629a SERVER-1498: qualify custom strnlen in bsoninlines, move impl
- strnlen was ambiguous in bsoninlines.h without goodies.h header
 - goodies.h header includes lots of other stuff, so moved custom
   strnlen to bson/util/misc.h.
 - update bsoninlines.h to use namespace qualified name
2010-07-27 18:15:48 -04:00
Andrew C. Morrow
2bc93939b5 fix compilation errors in bson.h 2010-07-27 18:15:43 -04:00
Andrew C. Morrow
0553e3c381 SERVER-1496: Add explicit data/length ctor to StringData 2010-07-27 18:15:36 -04:00
Mathias Stearn
99c0d3557f More efficient toString 2010-07-27 17:18:43 -04:00
Mathias Stearn
00679b9a2b Test expect lowercase hex. May change them later. 2010-07-27 17:18:43 -04:00
Mathias Stearn
585b3797ff use less stringstream in bson 2010-07-27 17:18:43 -04:00
Mathias Stearn
16ab1bcbe6 Remove tautologous test. validate() used the same formula as size() 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
Eliot Horowitz
4471c919ed fix bson asserts 2010-07-26 16:10:32 -04:00
Eliot Horowitz
1284b0b38a option not to include EOO on string 2010-07-24 12:40:19 -04:00
dwight
75be526b4a windows, at least vs2010 debug was unhappy with timettostring we had a buf len specified that did not match callers length 2010-07-24 00:33:50 -04:00
Eliot Horowitz
5e07c9e50c appendChar 2010-07-23 12:06:25 -04:00
Eliot Horowitz
c09bd3b45f debugging 2010-07-22 14:00:14 -04:00
Eliot Horowitz
8593e82df6 oid operator< 2010-07-22 13:52:22 -04:00
Dwight
3b2ede3771 rs rollback work 2010-07-21 15:39:59 -04:00
Eliot Horowitz
9bc4aea8ba operator < > <= >= for BSONObj 2010-07-20 23:16:48 -04:00
Alberto Lerner
9c33f219fb SERVER-1272 Inline hot portion of BufBuild::grow() 2010-07-20 13:44:35 -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
Dwight
7019539aa6 compile 2010-07-19 10:44:53 -04:00
Alberto Lerner
f51a4d0669 SERVER-1270 Hook StringData to BufBuilder 2010-07-19 09:56:24 -04:00
Alberto Lerner
6f728ae260 Eliminate BSONObj->string implicit conversion 2010-07-18 15:15:31 -04:00
Alberto Lerner
a36f3ebb6d Make StringData a class 2010-07-18 14:35:14 -04:00
Alberto Lerner
ebc5d5d3e1 Let's keep it just one struct
This reverts commit 94af9c42e4.
2010-07-18 14:22:36 -04:00
dwight
db607d1f22 tweak 2010-07-18 12:53:07 -04:00
Eliot Horowitz
94af9c42e4 added a StringDataNoSize struct 2010-07-18 11:21:48 -04:00
Eliot Horowitz
867b9c16f1 use StringData in place rather than hacking 2010-07-18 11:14:32 -04:00
Alberto Lerner
daf8c0fbd0 Revert "SERVER-1270 Prep for hooking StringData"
This reverts commit b7c9a9fc57.
2010-07-17 16:07:38 -04:00
Alberto Lerner
b7c9a9fc57 SERVER-1270 Prep for hooking StringData 2010-07-17 14:33:17 -04:00
Dwight
ec4207bac9 Merge branch 'master' of github.com:mongodb/mongo 2010-07-14 15:09:10 -04:00
Dwight
db5aafcd11 rs fixes 2010-07-14 15:08:59 -04:00
Mathias Stearn
4407f18829 extractFieldsDotted was unused and broken (done() vs obj()). use extractFields instead. 2010-07-14 14:34:44 -04:00
Mathias Stearn
38c27222e7 BSONForEach macro 2010-07-14 14:34:43 -04:00
dwight
5eaa7eaf1e rs tweaks 2010-07-12 08:54:37 -04:00
Alberto Lerner
7755d602c4 SERVER-1270 Go all the way const 2010-07-07 17:53:06 -04:00
dwight
16d3dc355c compile 2010-07-07 15:04:32 -04:00
Alberto Lerner
13a235bcf3 SERVER-1270 Length uniform in all ctors (thanks Mathias) 2010-07-07 14:53:12 -04:00
Alberto Lerner
4bccb4792c SERVER-1270 Improve StringData (on behalf of Andrew Morrow) 2010-07-07 13:55:12 -04:00
Mathias Stearn
1dcdf8305b full option to BSONObj::toString. fix Chunk::genId. SERVER-1370 2010-07-07 12:18:57 -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
62a6e478d6 SERVER-1272 Separate slow portion of hot function 2010-07-06 21:12: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
c103884d09 better diag screen rs 2010-07-06 16:11:56 -04:00
Mathias Stearn
ed0df3ed3e fix Date_t::toString 2010-07-05 12:54:11 -04:00
Eliot Horowitz
dd337cb1d6 fix bsondemo and add to SConstruct 2010-07-02 10:50:43 -04:00
Eliot Horowitz
2aa01a059e better error message 2010-07-01 16:05:27 -04:00