Commit Graph

479 Commits

Author SHA1 Message Date
dwight
ed5353bb0a revert dbholdermutex 2011-12-03 13:32:26 -05:00
dwight
1722630e89 still finishing refactorings of db opening with locking. fix some buildbot breaks 2011-12-02 13:10:36 -05:00
Dwight
5c3e52d7a5 change holdermutex to be nonrecursive which is preferrable and also now we can dassert locked for more safety 2011-12-01 12:45:59 -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
d1a054cac5 fix DiagLog race condition. while at it some cleaning 2011-11-14 18:38:16 -05:00
dwight
0d2cb3baee test 2011-11-13 17:20:44 -05:00
Kristina
ee084750b7 don't short-circuit maintenance mode if auth fails 2011-11-10 13:47:07 -05:00
gregs
2b087f3543 changes to staleconfigexceptions for SERVER-4158 2011-10-31 09:28:59 -04:00
Eliot Horowitz
16d6cd0642 godinsert can't be admin only since it operates on a given db
made it only work locally
2011-10-26 03:41:54 -04:00
Dwight
112eb0cf9e security: make a test command adminOnly 2011-10-24 17:09:56 -04:00
dwight
397660d0b0 log test command invoke 2011-10-18 22:22:08 -07:00
dwight
7c4fd4b18a test commands should only be used for testing; log so that if something weird is happening one notices 2011-10-18 22:20:10 -07:00
Eliot Horowitz
4e0321c714 fix godinsert with newer Command code 2011-10-18 23:18:58 -04:00
Eliot Horowitz
c5e9162870 factor number of connections into memory leak warning SERVER-4063 2011-10-12 12:36:22 -04:00
Kristina
a5cfd6af34 make getLastError require auth SERVER-3773 2011-09-30 13:11:21 -04:00
Kristina
991bfa6eae more commands require authentication SERVER-3773
Not getLastError, for now, as it's a little more complicated.
2011-09-29 13:07:14 -04:00
Eliot Horowitz
68773c1816 fix crash in filemd5 without correct index SERVER-3913 2011-09-22 23:37:41 -04:00
Kristina
295dd22215 move start time to cmdline SERVER-3696 2011-09-22 14:27:24 -04:00
Kristina
d869bd9bb7 try/catch around all command calls SERVER-3923 2011-09-22 12:35:44 -04:00
Eliot Horowitz
b88b810d28 fix reIndex on secondaries SERVER-3866 2011-09-14 17:57:47 -04:00
Eliot Horowitz
a881aacb3d move authentication check earlier for safety SERVER-3773 2011-09-07 12:10:34 -04:00
Dwight
eaf7bd21e5 fix ageoutjournalfiles parameter setting bug SERVER-3302 2011-08-16 12:09:09 -04:00
Mathias Stearn
4edeb8f2b0 Check argument to create 2011-08-15 19:16:40 -04:00
Mathias Stearn
dd520e59a5 Add "warnings" RamLog and field in serverStatus. Use for full disk warnings. SERVER-3323 2011-08-08 12:44:52 -04:00
Aaron
36f0f03adb SERVER-3475 don't close the builder in missing _id index case 2011-08-07 15:09:50 -07:00
gregs
a19bd10c50 handle m/r errors via assertion exceptions to keep consistent error interface SERVER-3478 2011-08-05 12:22:30 -04:00
gregs
b96bd28ad5 don't throw error with unfulfillable query in mr SERVER-3478 2011-08-05 12:22:30 -04:00
Aaron
470aac09a2 SERVER-3475 ignore certain collections without an _id index in dbhash command 2011-08-04 22:10:35 -07:00
dwight
4d3fe8b73a elim a couple warnings on windows 2011-08-02 02:39:06 -04:00
Kristina
c84f98ab80 maintenance mode for commands SERVER-3427 2011-07-29 11:48:09 -04:00
Eliot Horowitz
cd85624ed5 make godinsert work on slaves 2011-07-28 17:24:42 -04:00
gregs
e5d902202f full API change to command interface, add options SERVER-3405 2011-07-27 15:59:27 -04:00
Eliot Horowitz
408ec2e0da more timing for serverStatus 2011-07-16 07:32:53 -04:00
Aaron
62060e62f7 Revert "SERVER-3189 fix listDatabases race condition that was causing dbcase test to fail"
This reverts commit c85b48ce58.
2011-07-11 22:52:41 -07:00
Aaron
c85b48ce58 SERVER-3189 fix listDatabases race condition that was causing dbcase test to fail 2011-07-11 20:49:17 -07:00
Eliot Horowitz
b82b1a1a37 SERVER-3386 start command timers at right location 2011-07-07 03:29:52 -04:00
Dwight
e9170171f9 use new index version on reindex command 2011-07-05 11:39:36 -04:00
Eliot Horowitz
131e1d2182 more cleaning 2011-06-22 15:51:08 -04:00
Dwight
add206436e temp stop age out of journal files for backups. backport? 2011-06-21 12:48:31 -04:00
Eliot Horowitz
32de61255e putting delete in its own files and related cleaning 2011-06-20 17:34:16 -04:00
dwight
bfe34b1985 doesnt make much sense to specify capped without a size so check for that 2011-06-11 12:55:46 -04:00
Kristina
30679312d1 step down before shutting down SERVER-616 2011-06-10 14:22:44 -04:00
Kristina
dd0aea3497 split out sharding/non-sharding shutdown 2011-06-10 12:35:33 -04:00
Kristina
8e9d70a66f expose tagging to getLastError SERVER-992 2011-06-09 15:06:35 -04:00
Eliot Horowitz
b025198173 typo in listDatabases 2011-06-01 11:40:37 -04:00
Eliot Horowitz
d61ea38d7d listDatabases cleaning 2011-06-01 03:08:06 -04:00
Eliot Horowitz
927bd87c90 fix locking in listDatabases 2011-06-01 03:06:17 -04:00
dwight
37204c7ca0 cleaning and a small insert optimization 2011-05-29 00:31:17 -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
Eliot Horowitz
0146bef876 make serverStatus more obvious with journal 2011-05-18 20:05:56 -04:00