Commit Graph

424 Commits

Author SHA1 Message Date
dwight
ed5353bb0a revert dbholdermutex 2011-12-03 13:32:26 -05:00
Tad Marshall
c8e45cce25 SERVER-2833 -- shut down cleanly on OS or Service Controller shutdown event
Added code to log shutdown events from the Windows Service Controller
and to respond correctly to those events.  Shutdown from the console
on logoff or shutdown callbacks (stop ignoring them).
2011-12-01 20:42:13 -05:00
dwight
ba858ba8d3 redo how we handle concurrency when opening a database initially.
this was awkward at best before (very old code).  however the change is pretty big and is thus
worth a careful review - the main issue possible is not being locked as widely as it should be
somewhere, not so much the specifics of any one line of the change.

also cleaned up the Context constructors to be more readable and got rid of one completely

made several Context object members const
2011-11-26 21:08:11 -05:00
Dwight
30c7b82757 Merge branch 'master' of github.com:mongodb/mongo 2011-11-17 10:11:15 -05:00
Dwight
66697eb748 comments and such 2011-11-17 10:11:10 -05:00
dwight
0877fc6c93 concurrency work 2011-11-17 08:05:15 -05:00
dwight
d1a054cac5 fix DiagLog race condition. while at it some cleaning 2011-11-14 18:38:16 -05:00
Kristina
e49b622e5a Make curop return error on unauthed access 2011-11-11 12:13:37 -05:00
Brandon Diamond
3c2cfee68f SERVER-2663: Query inprog array (currentOp) 2011-11-07 12:38:30 -05:00
gregs
2b087f3543 changes to staleconfigexceptions for SERVER-4158 2011-10-31 09:28:59 -04:00
Dwight
710c4d5236 log less 2011-10-06 14:01:05 -04:00
Mathias Stearn
7bbc02cbf0 Make AWAIT_DATA use condition_variable rather than polling 2011-10-05 19:36:49 -04:00
Mathias Stearn
5a318188bb Skip expensive part of AWAIT_DATA if we know there wasn't a write to oplog since last pass 2011-10-05 19:36:49 -04:00
Mathias Stearn
8593d9caad cleaner 2011-10-04 16:49:23 -04:00
dwight
18737bcb6d dont compile mutexdebugger on release builds; compile 2011-10-03 22:31:33 -04:00
Dwight
ae30374ed8 Merge branch 'master' of github.com:mongodb/mongo
Conflicts:
	db/btree.cpp
	db/db.vcxproj
	dbtests/test.vcxproj
	server.h
	util/concurrency/rwlock.h
	util/concurrency/value.h
2011-10-03 13:43:34 -04:00
Eliot Horowitz
96a765d41c setProfilingLevel(2) not always working because millis set in wrong place SERVER-3910 2011-10-02 22:52:37 -04:00
Mathias Stearn
0b53c28154 Do objcheck for bulk insert outside of write lock SERVER-3732 2011-09-12 17:13:14 -04:00
Mathias Stearn
43cff65e66 Correctly count bulk inserts in opcounters SERVER-3817 2011-09-12 17:13:14 -04:00
Dwight
a7500b9bc0 clarify error msg 2011-09-06 16:22:10 -04:00
Kristina
e8f978e25d improve log message 2011-09-02 10:34:06 -04:00
Mathias Stearn
8f2b751b77 Do objcheck for single inserts outside of writelock. SERVER-3724
Fix for bulk inserts after 2.0
2011-08-31 11:14:51 -04:00
Mathias Stearn
689469c2de Rename keep_going to continue_on_error SERVER-3233 2011-08-08 12:44:52 -04:00
Kristina
f1cd4e99c2 return 0 instead of throwing getMoreWaitException 2011-07-14 15:44:34 -04:00
Dwight
9bbe38a24c dont inline asserts. might matter with global optimizers. 2011-06-27 18:56:09 -04:00
Eliot Horowitz
5c2153e14a some sock cleaning prep 2011-06-26 12:01:25 -04:00
Eliot Horowitz
131e1d2182 more cleaning 2011-06-22 15:51:08 -04:00
Eliot Horowitz
32de61255e putting delete in its own files and related cleaning 2011-06-20 17:34:16 -04:00
Eliot Horowitz
4d2cb04931 more update cleaning 2011-06-20 16:23:54 -04:00
gregs
884e100ec0 better logic for no-result in rs for parallel ops SERVER-2481 2011-06-16 17:34:40 -04:00
Dwight
98b52c0994 we were logging extraneously on oplog getmores. not sure why time went to 4000ms from 3000 2011-06-06 14:03:10 -04:00
dwight
6510475ff1 curTimeMillis() was dubious as it rolls over frequently -- so eliminate it. 2011-06-02 23:49:49 -04:00
dwight
37204c7ca0 cleaning and a small insert optimization 2011-05-29 00:31:17 -04:00
dwight
bb3c531d01 fix dup error nums / compile 2011-05-24 10:12:25 -04:00
dwight
afd23f33f9 make a noreturn version of insert, would be faster unless cmopiler is very smart.
cleaning in insert()
2011-05-24 10:05:31 -04:00
dwight
a3cd7ed576 small reeivedinsert tuning 2011-05-24 02:13:10 -04:00
Mathias Stearn
b690e237fd Add InsertOption_KeepGoing to keep going after error on bulk insert. SERVER-509 2011-05-23 18:46:27 -04:00
Mathias Stearn
0e28f89602 minor refactor to prep for SERVER-509 2011-05-23 10:30:15 -04:00
Eliot Horowitz
17381fcf93 fix remove broadcast check 2011-05-13 18:33:48 -04:00
Dwight
fb3fac3dff use _WIN32, not WIN32 2011-05-11 11:45:47 -04:00
Eliot Horowitz
9e4087883d put fields into system.profile, not a big string SERVER-3061 2011-05-08 00:53:07 -04:00
Eliot Horowitz
46bc601cc6 reset OpDebug soon to avoid pointers to network buffers 2011-05-07 20:11:17 -04:00
Eliot Horowitz
71dc50d006 don't use stringbuffer for OpDebug SERVER-1591 - updates about 8% faster 2011-05-07 17:00:57 -04:00
Kristina
2e7a28c0d7 synchronize stepdowns with writes SERVER-2882 2011-05-05 12:42:32 -04:00
dwight
4f969e112a trap segfaults and such and try to log them on windows
we also try to write a note to the windows event viewer
2011-04-18 18:44:38 -04:00
Dwight
c4c8745b44 pathlock terminate message on windows was not very clear 2011-04-06 11:16:39 -04:00
Eliot Horowitz
90e5a91851 use 0.0.0.0:0 for DBDirectClient like we used to 2011-04-05 08:26:35 -04:00
Eliot Horowitz
c4b09ea4d2 fix linking of exitCleanly 2011-04-05 02:37:18 -04:00
Eliot Horowitz
f9237e3cb6 working towrads unifying network code 2011-04-05 02:24:16 -04:00
Mathias Stearn
e73c3aac9d Dont error out due to lockfile when running with --repair SERVER-1609 2011-04-04 17:32:49 -04:00