0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
Commit Graph

296 Commits

Author SHA1 Message Date
Aaron
b473e85b92 Make g++ warnings stricter, clear a few new warnings 2008-12-17 14:09:37 -05:00
Dwight
ac51aadd92 Merge branch 'master' of ssh://git.10gen.com/data/gitroot/p
Conflicts:

	db/pdfile.h
2008-12-16 18:01:00 -05:00
Dwight
b63867ab3c cleanup how we use boost.
eliminate boost hpp's from this repository
see 10gen.com/wiki/pub.db.contrib.windows
2008-12-16 17:48:48 -05:00
Aaron
75a45c346f Add repairDatabase support 2008-12-16 10:20:24 -05:00
Dwight
0e32c98bf3 protect against inappropriate $cmd's to a slave mode db
Command code cleanup
--quiet for Jim
2008-12-11 10:27:05 -05:00
Geir Magnusson Jr
40dd1bd6e4 Move the definition of objcheck variable from db.cpp to
instance.cpp, so that the dbtests can link - it doesn't
link with db.cpp
2008-12-08 14:41:38 -05:00
Dwight
a43b0755ad --objcheck command 2008-12-08 11:21:00 -05:00
Dwight
e98dbf5acd compile on windows 2008-12-03 10:12:27 -05:00
Aaron Staple
58fd04ab38 Merge with recent db.cpp, makefile changes 2008-12-03 09:56:18 -05:00
Aaron Staple
ffc4cd87af Remove #include cruft 2008-12-02 17:27:22 -08:00
Dwight
60b769a8cb replication fixes -- "first: true" support (local.dbinfo.*); clean up class name 2008-12-02 14:24:45 -05:00
Aaron Staple
6c5b0b5cfb Forgot commit -a 2008-12-02 09:54:32 -08:00
unknown
dfb8f562ae web console beginnings 2008-11-29 20:01:58 -05:00
Dwight
890048958b --source useful now 2008-11-10 17:45:39 -05:00
Dwight
a89d6b94f7 --source cmd line 2008-11-10 11:20:30 -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
13480027d9 reorganize commands code for dbgrid 2008-10-22 16:56:39 -04:00
Dwight
0aef80f8cc rename classes 2008-10-21 16:13:48 -04:00
Dwight
1bef26dcc0 don't exit if client sends us garbage for a query 2008-10-13 16:19:39 -04:00
Dwight
b696111e64 repl: source parm now optional 2008-10-10 16:55:21 -04:00
Dwight
efe9d8be20 checkpointing soem dbgrid work 2008-09-29 18:00:53 -04:00
dwight
2a8679c801 Merge branch 'master' of ssh://git.10gen.com/data/gitroot/p 2008-09-14 22:49:44 -04:00
dwight
e783239b3f copydb work 2008-09-14 22:49:30 -04:00
Eliot Horowitz
245779485e Merge branch 'master' of ssh://git.latenightcoders.com/data/gitroot/p 2008-09-14 22:03:01 -04:00
Eliot Horowitz
5fa38bdead ./db javatest just runs the jni test 2008-09-14 12:38:48 -04:00
Dwight
e9370576ad oplogging off unless a special build 2008-09-11 16:25:16 -04:00
Dwight
f56113d736 arbitrate 2008-09-11 15:13:47 -04:00
Dwight
1d4379a5d2 dbgrid.cpp added; return $err on assert 2008-09-11 10:45:57 -04:00
Dwight
90d0885116 Merge branch 'master' of ssh://git.10gen.com/data/gitroot/p
Conflicts:

	db/makefile
2008-09-09 14:30:22 -04:00
dwight
4af0da7918 break out code to serparate file 2008-09-08 20:37:59 -04:00
Dwight
5f9d52a2f5 more work on pairing 2008-09-04 18:24:03 -04:00
Dwight
5deec92469 endian check capability
repl work in progress
cleanup
2008-09-04 10:33:56 -04:00
Dwight
8cac7e4dc4 advertise new dbs for replication; handle user asserts on repl 2008-09-03 16:43:00 -04:00
U-GEIR-5ACC88A714\Administrator
5599f9ec69 db.cpp : tweak correction of supplied data dir path to work on windows
also.  This needs a real fix - something a little more elegant
2008-08-23 06:58:38 -04:00
Dwight
bfb61b7795 cleanup 2008-08-19 16:12:13 -04:00
Dwight
4e922d955b reuse cursor from repl batch to batch 2008-08-19 14:39:44 -04:00
Dwight
edcee6aaa8 tailable cursors working 2008-08-13 12:17:18 -04:00
Dwight
39310ed113 cleanup; fix visual studio settings 2008-08-11 17:02:32 -04:00
Dwight
776387ea1b Merge branch 'master' of ssh://git.10gen.com/data/gitroot/p
Conflicts:

	db/repl.h
2008-08-11 15:16:54 -04:00
Dwight
236575ca95 minor cleanup pragmas 2008-08-11 14:53:08 -04:00
dwight
bc24777c11 replication fixes plus some log cleanup 2008-08-02 14:58:15 -04:00
Dwight
74337a4d3c Merge branch 'master' of ssh://git.10gen.com/data/gitroot/p 2008-07-31 09:58:17 -04:00
Dwight
37acacbe07 repl master fix 2008-07-31 09:58:08 -04:00
Geir Magnusson Jr
22285ede9a Add log output for master and slave modes so we are sure at startup 2008-07-31 08:01:51 -04:00
Dwight
227f630729 replication 2008-07-29 17:54:54 -04:00
Dwight
a0d1c47ff7 replication some work done 2008-07-28 17:52:44 -04:00
Dwight
3363fe311c collection options are retained when db is cloned;
those options now listed in system.namespaces;
more repl work
2008-07-28 13:51:39 -04:00
Dwight
e011494cbc cloneDatabase() 2008-07-27 18:36:47 -04:00
Eliot Horowitz
50e8a1a3f5 added AGPL License Header to every file
take 2
2008-07-20 17:37:33 -04:00
Eliot Horowitz
383a862ad3 Revert "added AGPL License Header to every file"
Oops - added multiple times.

This reverts commit 608769fd03.
2008-07-20 17:34:22 -04:00
Eliot Horowitz
608769fd03 added AGPL License Header to every file 2008-07-20 17:33:02 -04:00
Dwight
c3adb4946f check for out of memory 2008-07-17 13:42:20 -04:00
Dwight
2612fa547b Revert "safemalloc"
This reverts commit d195086cb8.
2008-07-17 13:23:26 -04:00
Eliot Horowitz
d195086cb8 safemalloc
slight perf. hit
we can always just do #define safemalloc malloc

someone should look at realloc,calloc, etc...
2008-07-17 09:26:42 -04:00
Dwight
940273d635 show query expression when slow 2008-07-16 17:38:46 -04:00
Dwight
09da292c09 lots: new count implemenation,
segv handler fix,
tweak # of objects returned on unlimit()ed find
2008-07-11 16:47:02 -04:00
Dwight
51bb240a58 --nojni option. 2008-07-11 12:27:23 -04:00
Dwight
86fd5369aa --oplog cmd line option 2008-07-10 09:35:30 -04:00
Dwight
017d3126bc logging wasnt' threadsafe 2008-07-09 16:29:58 -04:00
Dwight
ee68a8e252 --nocursors 2008-07-09 12:32:11 -04:00
Dwight
1bf45a0843 fix deleteindexes and drop issue
minor hashtab fix
ensureindex works now if collection DNE
2008-07-07 18:57:04 -04:00
Dwight
b3f5a1f27f close sockets on shutdown 2008-07-01 20:01:28 -04:00
Dwight
fc0e91f68e detect mmap failure properly; sigsegv fixes 2008-07-01 13:13:41 -04:00
Dwight
89b2164a18 more defensive code and smarter validate function 2008-06-30 21:08:31 -04:00
Dwight
0bc5be592d validate a little smarter 2008-06-29 22:33:59 -04:00
Dwight
d3e3876751 stack traces 2008-06-27 14:35:05 -04:00
Dwight
58d84f51f2 close datafiles on any sort of termination (including seg fault) 2008-06-26 15:30:54 -04:00
Dwight
9dbbf6065e test stub 2008-06-26 15:05:14 -04:00
Dwight
15dfe43b34 move send() out of mutex.
should fix issue with db getting stuck on dev
2008-06-26 10:33:06 -04:00
Dwight
1f433f935d don't stop core dumps by mistake. 2008-06-26 09:09:19 -04:00
Dwight
2fc57c4159 change to do ref counts for JSObj objects.
should fix OS X
dangerous change.
2008-06-25 17:13:40 -04:00
Dwight
4bab168e0f better opLogging - smarter with $cmd, log subset of reads option. 2008-06-25 14:25:34 -04:00
Dwight
dc39662994 capped: don't assert on what could be a user error 2008-06-25 13:08:51 -04:00
Dwight
24d5031c9b Merge branch 'master' of ssh://git.10gen.com/data/gitroot/p 2008-06-25 10:46:42 -04:00
Dwight
fd39a9c15b log less (minor) 2008-06-25 10:46:33 -04:00
yellow
240c50cee3 from eliot
need to call log init in a more general place
2008-06-25 09:00:42 -04:00
Dwight
26dea1fcd6 db.dropDatabase(); 2008-06-24 17:31:51 -04:00
Dwight
cb18407a0d replay better 2008-06-23 16:28:25 -04:00
Dwight
5d2cdfbad0 replay 2008-06-18 17:34:14 -04:00
Dwight
f5947576e2 Merge branch 'master' of ssh://git.10gen.com/data/gitroot/p 2008-06-17 16:57:24 -04:00
Dwight
652faabd18 catch exception on getMore() 2008-06-17 16:57:12 -04:00
Dwight
683671d4bb db msg end only works for localhost now for security. 2008-06-13 14:28:43 -04:00
Dwight
c79a5e1753 fix a jni issue with the last bug fix. 2008-06-12 11:56:40 -04:00
Dwight
1d8c3e37b3 bad memory issue with cursors 2008-06-11 16:58:34 -04:00
Dwight
4bda2a91c6 logging 2008-06-10 17:20:15 -04:00
Dwight
94cb05e36a Merge branch 'dwight' 2008-06-10 13:13:57 -04:00
Dwight
1aeaa4f34d alloc cursor sl faster 2008-06-10 13:13:05 -04:00
Dwight
4690479e34 handle bad connect from something weird 2008-06-09 15:05:00 -04:00
Dwight
92d2e867b7 fix signal for jni 2008-06-07 09:19:49 -04:00
Dwight
6ba343cdf2 log less annoying 2008-06-06 10:47:39 -04:00
Dwight
1625885eb7 on kill, finish curr cmd. 2008-06-06 10:17:58 -04:00
Dwight
3051b961ca dos2unix 2008-06-06 09:43:15 -04:00
Geir Magnusson Jr
68fc2216b0 db.cpp, javajs.cpp : allow user to specify directory for appserver, rather than regular search 2008-06-06 08:39:04 -04:00
Dwight
9fba70e49f query embedded objects 2008-06-02 20:27:45 -04:00
Dwight
36435d4e78 debugging 2008-05-16 16:42:37 -04:00
Dwight
86f689d3ac log cursor id on getmore 2008-05-07 23:25:04 -04:00
Dwight
a48c6c2fa6 log dir 2008-05-01 10:55:18 -04:00
Dwight
548adc2678 don't assert if key to index too big ; nicer msg too 2008-05-01 10:22:05 -04:00
Dwight
def9b1ba01 Merge branch 'master' of ssh://git.10gen.com/data/gitroot/p 2008-04-30 19:32:07 -04:00
Dwight
d67a202c14 sai hack 2008-04-30 19:31:54 -04:00
Geir Magnusson Jr
29962eaf81 add the pid to the startup output to make it clear which process we are 2008-04-30 09:13:19 -04:00
Geir Magnusson Jr
bd7abd981b change how we fix the db-path : do it in initAndListen() 2008-04-30 09:02:15 -04:00
Geir Magnusson Jr
c6c693fdcc DB-1 : ensure that there's a trailing slash for dbpath
(otherwise bad things happen)
2008-04-30 08:47:31 -04:00
Dwight
8210548d7f dbproblem.log file 2008-04-25 17:24:27 -04:00
Dwight
eb204a454c Merge branch 'master' of ssh://git.10gen.com/data/gitroot/p 2008-04-17 10:12:32 -04:00
Dwight
84fd0d5390 debug minor 2008-04-17 10:12:25 -04:00
Geir Magnusson Jr
f3a45cf3a1 Add sig handler for SIGPIPE. Lets the app exit cleanly on a "msg end" loop 2008-04-13 12:32:37 -04:00
Geir Magnusson Jr
9c2a3c7c32 Return 0 when sent an "end" message as that's a clean exit 2008-04-12 19:26:14 -04:00
Dwight
a3f3a664a8 group by
appendBool / return bool from jni
2008-04-08 15:42:14 -04:00
Dwight
993e4fd967 overassert fixed 2008-04-07 13:35:58 -04:00
Dwight
f26b090d41 minor 2008-04-07 13:08:28 -04:00
Geir Magnusson Jr
042da8c2ab Parameterize the msg command so that port can be specified
Enables use of the "msg" feature of db to shut down an instance
based on the port it's listening to
2008-03-31 15:06:58 -04:00
Geir Magnusson Jr
5241d1f3ad Refactor db.cpp to remove repeated code
Encapsualted the init and listen code into a function.
2008-03-31 12:59:03 -04:00
Geir Magnusson Jr
cd788a2a0e Remove the tabs from my previous commit - no functional change 2008-03-31 12:07:18 -04:00
Geir Magnusson Jr
f51fd34f91 Merge branch 'master' of ssh://git.10gen.com/data/gitroot/p 2008-03-31 12:02:12 -04:00
Geir Magnusson Jr
49a9019ec6 Add alternative starting parameters to allow override of listening port and db data path
$ ./db --port 12345 --dbpath /foo/bar/baz
2008-03-31 12:02:04 -04:00
Dwight
74e5216442 v105 bug with client variable 2008-03-31 11:50:45 -04:00
Dwight
985d443af0 defensive 2008-03-31 11:00:26 -04:00
Dwight
e21dfab42e v104 assert 2008-03-31 09:39:43 -04:00
Dwight
93b8ffe183 $where optimization 2008-03-29 23:30:44 -04:00
Dwight
a34ad50532 more asserts 2008-03-29 17:49:13 -04:00
Eliot Horowitz
48de06f6e9 db local jni access works 2008-03-27 17:48:07 -04:00
Eliot Horowitz
56df95be78 Revert "making it readable in emacs"
This reverts commit add70a7068.
2008-03-27 10:20:08 -04:00
Eliot Horowitz
add70a7068 making it readable in emacs 2008-03-27 10:16:24 -04:00
Dwight
a46965e010 where tweaks 2008-03-26 14:51:47 -04:00
Dwight
8cdedebc9c jnicallback 2008-03-24 18:04:22 -04:00
Eliot Horowitz
e74876b16f fixed jni jvm threading 2008-03-23 05:06:02 -04:00
Dwight
cf6cd6c60b bad assert
cleanup
2008-03-21 18:21:22 -04:00
Eliot Horowitz
7f8f49696a crazy jni version 2008-03-20 13:45:45 -04:00
Dwight
7fd658e329 javajs late init 2008-03-18 20:47:51 -04:00
Dwight
83bc6fed8b no fix 2008-03-18 18:05:22 -04:00
Dwight
bdacd93bb8 profiling 2008-03-16 20:59:19 -04:00
Dwight
fba714c583 new dup key implementation 2008-03-13 15:39:09 -04:00
Dwight
d496242919 $natural 2008-03-09 11:05:25 -04:00
Dwight
00008aa0d6 cap by size 2008-03-09 09:40:34 -04:00
Dwight
45b79abf1f Merge branch 'master' of ssh://git.10gen.com/data/gitroot/p
Conflicts:

	db/db.cpp
2008-03-08 23:18:28 -05:00
Dwight
5e68964e9e capped 2008-03-08 23:16:41 -05:00
Dwight
cb778b072b delete one index 2008-03-06 15:03:12 -05:00
Dwight
79552ed639 patch: killcursors more defensive 2008-03-05 16:51:27 -05:00
Dwight
c2e932245f version tag 2008-02-29 12:09:28 -05:00
Dwight
5b4f184fcc smarter about logging 2008-02-29 12:03:03 -05:00
Dwight
782ceb6f3b idiot 2008-02-29 12:00:17 -05:00
Dwight
a00a904aa7 version str 2008-02-27 18:56:42 -05:00
Dwight
880049d39e recv() 2008-02-25 19:13:30 -05:00
Dwight
dce3cb2a9e unindex fix 2008-02-25 18:22:10 -05:00
Dwight
3fc3a61fda defensive code for corruption of deleted list 2008-02-24 21:45:03 -05:00
Dwight
13e6a66d08 catch asserts on queries (always now)
prints the query in the log now too

still can terminate on getMore()
2008-02-24 14:59:03 -05:00
Dwight
0fafc08113 embedded objects now indexable
embedded fields still not indexable yet
2008-02-24 14:15:36 -05:00
Dwight
661156fd1a timestampts 2008-02-24 11:29:42 -05:00
Dwight
40aa7d63b9 catch assertions 2008-02-16 22:23:37 -05:00