Commit Graph

154 Commits

Author SHA1 Message Date
dwight
ed5353bb0a revert dbholdermutex 2011-12-03 13:32:26 -05:00
Dwight
152025d12e new ReadContext class which sets context and acquires readlock at the same time. 2011-12-01 17:50:32 -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
d84274ed6e comments 2011-11-10 12:10:19 -05:00
dwight
e5262a9ae0 make appropriate section inlinable 2011-09-12 23:32:47 -04:00
dwight
828ad7b5ff utilize two step index insertion with record insert code 2011-09-12 23:22:19 -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
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
63023cac63 begin using SimpleMutex when appropriate 2011-05-31 14:21:05 -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
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
Dwight
846a7a0bc5 checkpoint index v2 work 2011-04-21 14:53:10 -04:00
Mathias Stearn
002c71ed7a error codes 2011-04-14 18:52:50 -04:00
Dwight
fbc032038d dont allow user databases on --configsvr instances 2011-04-14 17:20:29 -04:00
Dwight
f86fd65d66 help locate errors and facility for better msgs 2011-04-12 11:37:23 -04:00
dwight
8ed14365df Merge branch 'master' of github.com:mongodb/mongo 2011-04-04 12:38:48 -04:00
dwight
1d46a7e4ba towards compact cmd still in prog 2011-04-04 12:38:38 -04:00
Mathias Stearn
270996933d replace "dur" with "journal" in log messages 2011-04-04 12:15:23 -04:00
Mathias Stearn
eede4ec2fc add FileCreatedOp on first use of file, regardless of preexistence 180?
Previously FileCreatedOp wouldn't be done for preallocated files since they
already existed.
2011-03-01 18:05:15 -05:00
Aaron
a61e609d2b rename backgroundIndexBuildInProgress to indexBuildInProgress 2011-01-14 16:27:07 -08:00
dwight
13b139f6c1 remove _TESTINTENT 2011-01-08 13:22:45 -05:00
Eliot Horowitz
b828d21630 ran astyle SERVER-2304 2011-01-04 00:40:41 -05:00
Dwight
9b7949d402 comment 2011-01-03 11:53:05 -05:00
Aaron
3a2087ac5c Add support for making NamespaceDetails::Extra writes durable and use this durable support when dropping indexes 2010-12-28 17:35:15 -08:00
Eliot Horowitz
77c9fc2681 verbose option to collstats that gives you extent breakdowns 2010-12-27 14:21:56 -05:00
dwight
5580398632 tuning 2010-12-19 21:08:04 -05:00
dwight
4282c06170 tuning 2010-12-19 21:01:13 -05:00
dwight
2d588fee51 use the pointer dur::writing() returns so that _TESTINTENT builds work 2010-12-16 17:21:37 -05:00
Mathias Stearn
24dd7ff666 Missing write intents 2010-12-16 16:22:14 -05:00
dwight
c7c5a57b1f eliminate the _DURABLE preprocessor define 2010-12-13 18:03:32 -05:00
dwight
1578e56b28 debugging 2010-12-13 14:40:15 -05:00
Dwight
11a95d8257 debugging 2010-12-13 13:45:55 -05:00
Mathias Stearn
1c17cece76 Pull some durability code into a class for easy disabling 2010-12-10 19:20:43 -05:00
dwight
ae7a69a006 dur safer 2010-12-06 19:30:34 -05:00
dwight
090f393f2b warning 2010-11-27 17:49:26 -05:00
dwight
8b848b1b21 dur fix intent length 2010-11-27 17:30:43 -05:00
dwight
6c3eb1ddd4 dur remap 2010-11-27 15:25:08 -05:00
Dwight
c90054b26d try a SEQUENTIAL hint for .ns files 2010-10-13 13:06:49 -04:00
Eliot Horowitz
7a21313631 better asserts 2010-10-07 22:53:59 -04:00
Dwight
8c166a0db7 dur work 2010-10-04 15:02:15 -04:00
Dwight
d8a8c354ff dur work 2010-10-04 14:02:52 -04:00
Dwight
45a7620aac dur work 2010-10-01 16:14:36 -04:00
Dwight
cddcb6d164 checkpoint some prep work 2010-09-30 17:27:40 -04:00
Dwight
5b0b5d7eb6 remove MMF:pointer to keep code simple - we are going to take a different approach 2010-09-30 15:14:10 -04:00
Dwight
c595bf62aa more intent to write declarations 2010-09-28 17:49:40 -04:00
Dwight
dbd32482a6 durability more work on declaring intent to write in the code 2010-09-28 17:18:36 -04:00
Eliot Horowitz
0591d86525 compile 2010-09-27 13:22:40 -04:00
dwight
c1b68a13de towards durability 2010-09-27 12:35:22 -04:00