0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +01:00
Commit Graph

307 Commits

Author SHA1 Message Date
Eliot Horowitz
fd9c26a74c safer object management 2009-03-26 15:14:24 -04:00
Eliot Horowitz
0195f478e5 Model::_id protected instead of private 2009-03-26 09:42:03 -04:00
Eliot Horowitz
265436b22d make Model::save,load virtual 2009-03-25 17:28:54 -04:00
Eliot Horowitz
e91ed0e854 add DBClientBase::getServerAddress() 2009-03-25 17:08:36 -04:00
Aaron
d0520ccafb Use string instead of char * in client code 2009-03-24 16:58:33 -04:00
Aaron
5a276ef621 Replace emptyObj with BSONObj() 2009-03-19 16:23:04 -04:00
Aaron
6d10afbd49 Find requested oplog entry starting from tail of log 2009-03-18 17:24:10 -04:00
Eliot Horowitz
2a1c3b1492 get rid of Model::defaultServer since its not being used and complicates some things 2009-03-12 17:12:24 -04:00
Aaron
d4fad81da1 Add explicit getMore to client interface 2009-03-10 16:49:17 -04:00
Aaron
d3dfec4799 Initialize members 2009-03-10 13:08:27 -04:00
Eliot Horowitz
b1a1e98294 make timestamp work on update, and a test 2009-02-28 18:55:04 -05:00
Eliot Horowitz
0dc0ff0541 make unserialze take a const BSONObj& 2009-02-27 10:37:13 -05:00
Eliot Horowitz
60f443b9b1 Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-25 14:21:06 -05:00
Eliot Horowitz
cb7c871fba fix getMore and cusror handling (was doing 1 extra network op) and 1 safety check in debug mode 2009-02-25 14:15:00 -05:00
Aaron
445b4d915a Error message changed 2009-02-25 12:35:45 -05:00
Dwight
72b52650ea more autoreconnect fixage 2009-02-24 13:46:21 -05:00
Dwight
d654aa6788 fix bug with auto reconnect in the client 2009-02-24 13:14:08 -05:00
Eliot Horowitz
de62cf49bc accessor for Query 2009-02-23 14:31:52 -05:00
Eliot Horowitz
a2d079b4e8 method and command to flush all pooled connections 2009-02-20 16:39:55 -05:00
Eliot Horowitz
e470130a5e open to save to check for error 2009-02-20 15:07:52 -05:00
Aaron
6f25a72ec3 'better' LazyString 2009-02-20 10:48:32 -05:00
Aaron
6df7d02ce8 Don't create string unless we're actually going to log 2009-02-19 12:03:15 -05:00
Aaron
b1d9032447 Get rid of stringable class, use implicit type conversion to string instead 2009-02-18 22:17:30 -05:00
Aaron
593bf1f126 virtual dtors == good 2009-02-18 13:42:32 -05:00
Eliot Horowitz
7412a333fc filemd5 supports root
BugzID: 1165
2009-02-18 13:11:22 -05:00
Eliot Horowitz
00f58bd87a spam 2009-02-18 11:27:07 -05:00
Eliot Horowitz
7bca09b9f9 fix gridfs - can't use BSONElement for strage like that
also did md5 while i was there
2009-02-18 11:26:30 -05:00
dwight
22085b0540 add a couple virtual destructors just to be safe 2009-02-17 19:21:01 -05:00
dwight
a44c512852 Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-17 14:03:43 -05:00
Eliot Horowitz
2e7a5d8bda fix _id storing 2009-02-14 09:41:52 -05:00
dwight
667c004013 a little dbclient.h cleanup (minor) 2009-02-13 20:04:13 -05:00
Eliot Horowitz
3422d92adf fixed logging 2009-02-13 16:17:52 -05:00
Dwight
c67eca8a2f c++ client:
allow BSONElements with the labeler
example
2009-02-12 18:20:52 -05:00
Dwight
459d62347b replication / exception throwing bug fix
--only option added
2009-02-12 15:03:38 -05:00
Dwight
8a569e8bc0 finish the Repl client connection in the c++ driver. 2009-02-11 11:36:51 -05:00
Eliot Horowitz
ba8b57c158 Query::toString 2009-02-11 10:37:04 -05:00
Aaron
565d374283 Use @file to tell doxygen to document globals, add more doc for BSON() and QUERY() 2009-02-10 14:04:03 -05:00
Dwight
4ab67f0e7e Merge branch 'master' of git.10gen.com:/data/gitroot/p 2009-02-10 12:35:38 -05:00
Dwight
c8fb50b3f1 md5 bug 2009-02-10 12:35:30 -05:00
Aaron
72d5a652fb Don't add 'key' twice 2009-02-10 12:01:32 -05:00
U-ELIOT-019992DFC\Administrator
853736071c include for windows 2009-02-10 10:48:41 -05:00
Dwight
192c4e5708 comments 2009-02-09 17:40:45 -05:00
Dwight
3b5cb47a1f tutorial; comments 2009-02-09 17:17:40 -05:00
Dwight
52ac9edf31 count() for c++ client 2009-02-09 16:24:47 -05:00
Dwight
fadc7ef3bb Merge branch 'master' of git.10gen.com:/data/gitroot/p 2009-02-09 15:38:34 -05:00
Dwight
8cb17548c2 bsonobjbuilder cleanup 2009-02-09 15:38:26 -05:00
Eliot Horowitz
e9f163e06f ScopedDbCollection -> operator 2009-02-09 13:34:40 -05:00
Dwight
147948c7b3 doneAndDecouple() -> obj() 2009-02-09 13:04:32 -05:00
dwight
bc55e5a63b tutorial 2009-02-08 21:18:38 -05:00
Eliot Horowitz
595328d2af Model::save() 2009-02-08 17:55:17 -05:00
dwight
d45688ce1d fix thorwing of exception wasn't right (dbclientconnection) 2009-02-08 16:02:48 -05:00
Eliot Horowitz
c154c78469 Model needs a server name, not a connection, and uses pools 2009-02-08 14:35:34 -05:00
dwight
9590e60f21 repl pairs support in conn pool 2009-02-07 09:21:29 -05:00
Dwight
21e105d3a2 new file 2009-02-06 16:58:46 -05:00
Dwight
7d593671fe rename classes and add a new client connect method 2009-02-06 16:56:14 -05:00
Dwight
9bf2bf3025 Merge branch 'master' of git.10gen.com:/data/gitroot/p 2009-02-06 14:22:05 -05:00
Eliot Horowitz
c06e0dacf7 safety 2009-02-06 14:10:53 -05:00
Dwight
94f125e855 new pagewriter
File class
sleepmillis fixed
2009-02-06 13:29:57 -05:00
Dwight
5dd84d0638 on exit, wait for replication to finish up 2009-02-04 13:22:02 -05:00
Dwight
60fb155c50 comments 2009-02-03 18:28:21 -05:00
Dwight
c17fcf847c comments 2009-02-03 18:24:55 -05:00
Eliot Horowitz
3aa74384ae grid/message -> util/message 2009-02-03 13:30:28 -05:00
Aaron
0e2df92fbc Use const reference to string to avoid extra copy when string passed explicitly 2009-02-03 11:54:51 -05:00
Eliot Horowitz
8e5a1a3edf safety and better error message 2009-02-03 11:04:54 -05:00
Eliot Horowitz
e20f07a46e list takes a filter 2009-02-02 22:16:39 -05:00
Eliot Horowitz
288d83370d gridfs and some tools 2009-02-02 17:19:55 -05:00
Eliot Horowitz
04430b44cc Merge branch 'master' of ssh://git.10gen.com/data/gitroot/p 2009-02-02 17:13:03 -05:00
Eliot Horowitz
36ba844fe6 using string instead of char* in a couple o places 2009-02-02 17:12:56 -05:00
Aaron
e93fa6cf95 Merge branch 'master' of ssh://aaron@git.10gen.com/data/gitroot/p 2009-02-02 16:18:56 -05:00
Aaron
99ad2eac76 Parse port suffix before calling hostbyname() 2009-02-02 16:18:44 -05:00
Eliot Horowitz
7d8e3c7296 Query(string) 2009-02-02 12:16:59 -05:00
Eliot Horowitz
940fb66363 correct string index type 2009-02-02 09:40:43 -05:00
Eliot Horowitz
165a4618ae added validate to client 2009-02-02 09:36:01 -05:00
Eliot Horowitz
9bcacf16c0 pragma pack changes for solaris
slight change this will break other platforms, will test
2009-02-01 22:21:32 -05:00
Eliot Horowitz
c3d40664c6 solaris compile 2009-02-01 09:06:40 -05:00
Dwight
fcb6834a60 add _id when missing on an insert
OID generation by the server a little better
OID str form output straigth byte order now
2009-01-30 18:18:38 -05:00
Dwight
9fe4dc3ba1 Merge branch 'master' of git.10gen.com:/data/gitroot/p 2009-01-30 15:09:51 -05:00
Dwight
643b12e0ce $where support in the driver Query object 2009-01-30 15:09:38 -05:00
Eliot Horowitz
120f859704 change password digest
from md5( "mongo" + pwd )
to md5( username + ":mongo:" + pwd )
2009-01-30 15:06:12 -05:00
Dwight
d3aa125d87 implement resetError
and make lasterror better
2009-01-30 14:49:28 -05:00
Dwight
790ef16736 getlasterror helper for c++ driver 2009-01-30 14:40:19 -05:00
Dwight
5ef85d1919 a few more client tests
and some syntactic sugar for c++ driver
2009-01-30 14:18:26 -05:00
Dwight
6e4efe880a $hint takes keypattern objects now 2009-01-30 13:13:49 -05:00
Dwight
1ec09421ed hint and explain 2009-01-30 12:46:49 -05:00
Dwight
2d3e942437 complain if hint index not found. should we? 2009-01-30 12:32:58 -05:00
Dwight
dcf90d4def sort() for c++ client 2009-01-29 18:38:35 -05:00
Eliot Horowitz
59fd962a7f dropCollection 2009-01-29 13:01:29 -05:00
Eliot Horowitz
026bd860c8 appendWhere and example 2009-01-29 10:30:25 -05:00
Eliot Horowitz
502a5e6e86 export to doxygen 2009-01-27 13:08:07 -05:00
unknown
b29806e4a1 comments 2009-01-26 21:15:08 -05:00
Eliot Horowitz
050600e04b don't like these
Revert "more tests"

This reverts commit f49dba41b6.
2009-01-26 07:41:47 -05:00
Eliot Horowitz
f49dba41b6 more tests 2009-01-26 07:29:33 -05:00
Eliot Horowitz
6745ae9693 dbexit needs to use real exit 2009-01-25 16:25:36 -05:00
dwight
76b6aac917 make security work with repl pairs
replicate system.users collection
2009-01-24 21:25:55 -05:00
dwight
84138952eb c++ driver: cache authentications so that autoReconnect on a DBClientConnection will work
properly with security.
2009-01-24 17:36:39 -05:00
dwight
797fda0125 just comments 2009-01-24 16:31:36 -05:00
dwight
cc62027aee replication with security on 2009-01-23 18:24:15 -05:00
Aaron
8b89b9f775 Add remove to interface, and fix implementation 2009-01-23 15:14:12 -05:00
Aaron
e591c7dcc5 Add multi-insert and update functions to client interface 2009-01-23 10:10:21 -05:00
Eliot Horowitz
c14ac3ac0e fix authTest
abstract out pssword digest
2009-01-21 18:58:03 -05:00
dwight
92d7e087d3 make the c++ driver support digested & salted passwords in system.users 2009-01-21 15:31:14 -05:00
dwight
b97b97c3eb getnonce now returns a prettier nonce string -- hex digits as a string instead of double as a string. 2009-01-21 15:06:13 -05:00
Eliot Horowitz
90d35cded7 Merge branch 'master' into temp_auth
Conflicts:

	db/security_commands.cpp
2009-01-21 10:26:37 -05:00
Eliot Horowitz
bbb6744798 simple authTest 2009-01-20 11:38:12 -05:00
Eliot Horowitz
fbb8eb10ec using strings 2009-01-20 11:37:15 -05:00
unknown
c0961eb637 suppress a couple compiler warnings 2009-01-18 19:13:12 -05:00
dwight
e1021ee8ab authenticate command work
some dbhelpers additions
less verbose logging
2009-01-18 17:48:44 -05:00
Eliot Horowitz
61b0b78d75 paired connection doesn't implement all the methods yet 2009-01-16 11:13:18 -05:00
Eliot Horowitz
e87560d553 doc cleaning 2009-01-16 10:44:56 -05:00
Eliot Horowitz
528bceb2d2 doc cleaning/org 2009-01-15 17:40:43 -05:00
Eliot Horowitz
2dcdaa494a explicitly use mongo:: for this example for clarity 2009-01-15 11:38:32 -05:00
Aaron
261a467aa5 Replaced our #defined cout with mongo::out() 2009-01-15 11:26:38 -05:00
Aaron
90d45238aa Indent all lines within namespaces one level 2009-01-15 10:17:11 -05:00
Eliot Horowitz
938c2c07a8 some cleaning so that client doesn't have to link against java and pcre 2009-01-15 10:08:20 -05:00
Aaron
248a6dd8de Replace tab indentation with spaces 2009-01-14 17:17:24 -05:00
Aaron
ad1f6b3cbd Put our code in 'mongo' namespace 2009-01-14 17:09:51 -05:00
Eliot Horowitz
3c7205be4a made example simple, moved tests to clientTest 2009-01-14 10:44:25 -05:00
Eliot Horowitz
cc47974312 ensureIndex 2009-01-14 10:40:15 -05:00
Eliot Horowitz
bf7edfbae5 playing with BSONObjBuilder stream for building
and an example
2009-01-14 09:40:54 -05:00
Eliot Horowitz
57eeff38ec update 2009-01-13 16:08:07 -05:00
Eliot Horowitz
6d7a16678b simple clientTest 2009-01-13 15:45:49 -05:00
Eliot Horowitz
0565401c2e remove should be part of Base 2009-01-13 15:19:50 -05:00
Eliot Horowitz
4e60ec0df1 sayPiggyBack/piggyBack
not implemented yet, just passes through to say
2009-01-13 12:53:00 -05:00
Eliot Horowitz
ea90934bda cleaning targets/example 2009-01-13 09:56:18 -05:00
Eliot Horowitz
1aece26291 simple c++ client example 2009-01-12 15:27:46 -05:00
Eliot Horowitz
aca6d9c59f add stdafx so can be included by itself 2009-01-12 15:27:37 -05:00
Aaron
9e3d798e37 Make Arbitrate test work with Dwight's new dbclient code 2009-01-12 09:38:11 -05:00
dwight
aeef0a9d3d Merge branch 'master' of ssh://git.10gen.com/data/gitroot/p
Conflicts:

	client/dbclient.cpp
	client/dbclient.h
2009-01-10 18:29:09 -05:00
dwight
8428e6cbda command work client driver 2009-01-10 18:17:23 -05:00
Dwight
96d4406ece set options flag when $err is returned 2009-01-09 11:20:16 -05:00
Eliot Horowitz
ab581691b5 todo for cursor kill 2009-01-08 17:08:43 -05:00
Aaron
601be4dd4f recv full http request, implement simple rest post handling, refactor dbclient code 2009-01-07 10:08:12 -05:00
Aaron
dacc872ba2 Enhance json parser 2009-01-06 13:02:09 -05:00
Dwight
bed528742b Merge branch 'master' of ssh://git.10gen.com/data/gitroot/p 2009-01-06 10:48:17 -05:00
Dwight
b7b8bed9f7 don't create local db if running without replication
clean up startup options for dbgrid
2009-01-06 10:48:09 -05:00
Eliot Horowitz
33e11bc991 insert/remove in DBClientConnection 2009-01-05 14:48:04 -05:00
Eliot Horowitz
ce95083dc2 moving DBDirectClient to instance.* b/c it only make sense there and cleans linking 2009-01-02 16:41:13 -05:00
Eliot Horowitz
e5aa3e5e0b move DirectConnector to dbclient and make DBDirectClient 2008-12-31 11:59:28 -05:00
Aaron
b7cbd30112 Replace tab indentation with spaces 2008-12-28 20:28:49 -05:00
Aaron
81b17c9344 Log port number when connect fails 2008-12-19 11:19:35 -05:00
Aaron
62253080eb Use size_t to make different library versions happy 2008-12-19 11:00:47 -05:00
Aaron
1d6104fce1 Cursor keeps own copy of ns 2008-12-19 09:52:54 -05:00
Aaron
6ae140a2df Use socketless interface for cloning using single db instance 2008-12-18 12:02:12 -05:00
Aaron
b473e85b92 Make g++ warnings stricter, clear a few new warnings 2008-12-17 14:09:37 -05:00
Aaron
99bf277c18 g++ check return type, fix some warnings 2008-12-16 18:12:25 -05:00
Aaron
fc7da15c54 Add -Wsign-compare for g++, clean up a few warning messages 2008-12-12 14:19:49 -05:00
Dwight
971524387a Merge branch 'master' of ssh://git.10gen.com/data/gitroot/p
Conflicts:

	client/dbclient.h
2008-12-05 16:51:43 -05:00
Dwight
74f630aacc timing capabilities 2008-12-05 16:45:10 -05:00
Aaron Staple
243a3e6b2f Adding some pairing tests 2008-12-05 16:03:35 -05:00
Dwight
60b769a8cb replication fixes -- "first: true" support (local.dbinfo.*); clean up class name 2008-12-02 14:24:45 -05:00
Dwight
4e6f1c1f0e better json output 2008-11-14 11:20:23 -05:00
unknown
8beba2346e checkpoint work 2008-11-09 17:49:37 -05:00
unknown
45d9d8db48 move connpool to client folder 2008-10-31 19:17:54 -05:00
unknown
9bc872695d catch asserts and report error to client on a query
various dbgrid work incremental
background job class
2008-10-29 16:48:03 -05:00
Dwight
1875ee8151 more dbgrid work 2008-10-24 17:51:28 -04:00
Dwight
0aef80f8cc rename classes 2008-10-21 16:13:48 -04:00
unknown
f91cff53a0 griddb work 2008-10-19 17:46:53 -05:00