Commit Graph

569 Commits

Author SHA1 Message Date
dwight
ed5353bb0a revert dbholdermutex 2011-12-03 13:32:26 -05:00
dwight
04dd30ca5d try to make assert not fire when running without smallfiles if smallfiles db in use. not sure how i managed to get this to start happening given that it wasnt doing it before 2011-12-02 22:58:10 -05:00
milkie
4c58b9c182 SERVER-3930 -- record profiled statistics even if they are zero
Made profile member variables' initial values "-1" so that when they are updated with a value of 0, they will be
entered into the system.profile collection.
Changed keyUpdates to be signed so that it can be initialized to -1 like all the other integer values in the OpDebug class.
2011-12-02 08:59:48 -05:00
Eric Milkie
5b64d7565f constant-ize 2011-11-29 14:52:36 -05:00
dwight
9b8a7e8448 compile 2011-11-27 15:27:08 -05:00
dwight
c0cb333353 refactoring. openAllFiles was written in a way that suggests it may sometimes create files. 2011-11-27 15:19:55 -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
eab212db97 preparation for having a clean collection object 2011-11-17 14:40:14 -05:00
dwight
ebc078b150 increase the speed at which extent sizes within a collection grow so that it takes less long for them to become large 2011-11-12 15:55:57 -05:00
Kristina
72dcc0b296 Allow background indexes while in secondary state SERVER-2771 2011-11-09 18:45:57 -05:00
Mathias Stearn
541aa57d8f Revert "build index in system.user on insert SERVER-3572"
This reverts commit 3733a988c5.

Currently only builds index if system.users already exists so doesn't work for
first user. Reverting since this is breaking buildbot.
2011-10-24 18:21:32 -04:00
Mathias Stearn
3733a988c5 build index in system.user on insert SERVER-3572 2011-10-24 15:07:24 -04:00
dwight
08c3888312 make a long running operation terminate if the client has disconnected. we check for this at the beginning
of every request but intra request.  if a request will run for a very long time this is bad.

probably not for backporting -- might be nuances need to smoke for a while

also some yield code cleaning, really just making it easier to read.
2011-10-11 15:16:01 -04:00
dwight
6fc17b9c1c fix extraneous 2011-09-16 22:43:01 -04:00
dwight
81cb3314fd compile gcc 2011-09-13 10:15:31 -04:00
dwight
7d03d528a1 verifying upgraable will work 2011-09-12 23:32:56 -04:00
dwight
895e3e786c compile 2011-09-12 23:22:35 -04:00
dwight
a689f903e6 elim false positive assert in test binary 2011-09-12 23:22:22 -04:00
dwight
828ad7b5ff utilize two step index insertion with record insert code 2011-09-12 23:22:19 -04:00
dwight
4bead9d4f5 extraneous logging from last checkin 2011-09-12 23:22:13 -04:00
dwight
613bb7ba4a two step key addition to indexes 2011-09-12 23:22:10 -04:00
Mathias Stearn
7f12a2f1ce Change repair path not to include $ SERVER-2673 2011-09-12 13:31:46 -04:00
Eliot Horowitz
5fa00754cd veok" shouldn't be used, especially in error messages, since every function uses "slaveOk" SERVER-3804
from: patrick@collison.ie
2011-09-12 12:26:01 -04:00
Eliot Horowitz
b7d7b752a4 fix issue where dropDup code for insertion can fail on secondary during clone if doc moved SERVER-3762 2011-09-05 21:44:03 -04:00
agirbal
62993481e9 SERVER-3526: when a collection is renamed, its counters are kept in map, which can increase memory over time (e.g. with M/R)
SERVER-3527: when a collection is dropped, the transient NS details are kept in map, which can increase memory over time (e.g. with M/R)
2011-08-03 15:12:46 -07:00
Aaron
23c7fefdfe SERVER-2054 don't uassert due to unique index constraint violation in dropdups mode 2011-07-31 08:59:01 -07:00
Eliot Horowitz
f1c3bbd199 spam 2011-07-29 10:13:16 -04:00
Eliot Horowitz
724fc134c4 make sure to drop the same dups on master and secondaries SERVER-1086 2011-07-28 17:24:42 -04:00
Eliot Horowitz
6cd435b005 SERVER-2563 - make ClientCursor check disk location for record in memory if its going to be needed 2011-06-23 15:46:10 -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
Dwight
14711f4ef1 use legacy compare for legacy index building 2011-06-16 16:35:07 -04:00
dwight
96b2c2e35e FindingStart dbtest not working not sure why yet 2011-06-11 19:45:03 -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
Dwight
e593a577dd log nicer 2011-06-06 13:06:43 -04:00
Dwight
3ea739ba8d do not auto add an _id field on inserts if missing if the collection does not have an _id index.
also, add an _id if missing if the capped collection has an index.
2011-06-03 15:47:07 -04:00
Dwight
477807b851 comment 2011-06-03 14:49:41 -04:00
gerald-lindsly
1ee161dfbe SERVER-3064 2011-06-03 14:38:40 -04:00
Aaron
41be5821f3 remove BSONObjSetDefaultOrder and avoid inheriting from stl class 2011-06-02 13:34:26 -04:00
dwight
37204c7ca0 cleaning and a small insert optimization 2011-05-29 00:31:17 -04:00
dwight
c545dfed4f indicate if added _id on insert for tuning 2011-05-28 13:11:43 -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
c0384332f2 towards proper --quotafiles support 2011-05-23 20:03:24 -04:00
dwight
9d4b979160 code path tuning and should be a bit more readable too 2011-05-15 23:05:08 -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
Dwight
479a085bbc dont assert in destructor 2011-05-04 15:58:37 -04:00
Dwight
3de56d187f remove mmmutex lock as was in wrong order also trying to figure out if it was actually needed 2011-05-04 15:47:17 -04:00
Dwight
a3cd52048a Merge branch 'master' into main
Conflicts:
	SConstruct
	db/btree.h
	db/db.vcxproj.filters
	db/dbcommands_admin.cpp
	db/geo/2d.cpp
	db/pdfile.cpp
	dbtests/test.vcxproj.filters
2011-05-03 15:53:27 -04:00
Eliot Horowitz
18dc400e68 don't allow blank usernmae or password SERVER-3003 2011-05-03 10:53:24 -04:00
dwight
33897ac5d1 fix problem with groupcommitlimitedlocks simultaneous with dropdatabase in 1.9 2011-05-03 00:56:47 -04:00