Mathias Stearn
c2992ef108
debugging asserts for SERVER-2755
2011-04-04 14:50:33 -04:00
Mathias Stearn
270996933d
replace "dur" with "journal" in log messages
2011-04-04 12:15:23 -04:00
Dwight
67f71fe774
in the past a stat was lost with a change to writetodatafiles, adding back
2011-03-11 16:57:32 -05:00
dwight
df7248a721
cant destroy complex global variables at shutdown 180?
2011-03-01 21:08:44 -05:00
dwight
68838eb4e6
fix invalid 'unexpected file in journal directory' error message.
...
180
2011-03-01 08:05:51 -05:00
dwight
6113b4cd26
change to a faster checksum (old was md5). new is less discriminating but fast.
...
also, now includes the JSectHeader in the checksum.
2011-02-24 13:34:42 -05:00
dwight
73a8cfd0a4
header to cpps from h
2011-02-23 20:51:13 -05:00
Dwight
3b2c66e484
log a little more
2011-02-07 13:12:13 -05:00
dwight
61e35fa749
elim compile warning
2011-02-04 15:06:06 -05:00
dwight
879e5e1b0a
preallocate journal files. some file systems are quite slow otherwise.
2011-02-04 15:02:06 -05:00
dwight
6ecbaca69b
log less
2011-02-02 02:51:54 -05:00
dwight
f7bc0765eb
fixes for new groupCommitMutex
2011-01-22 23:38:44 -05:00
dwight
1f8cb82448
fix a problem with _DEBUG builds only.
...
we have protective code that requires we are in a write lock to write to mongommf's...that code was recently
fixed and made this debug situation manifest.
2011-01-16 11:09:40 -05:00
dwight
2dbe7e6937
SERVER-2320 finish lsn some code was missing
2011-01-09 16:26:33 -05:00
Eliot Horowitz
19f1a2c184
astyle
2011-01-05 00:32:30 -05:00
Mathias Stearn
79e5cbbd57
Recovery uses mmaped files again
2011-01-04 21:02:13 -05:00
Mathias Stearn
0dca1c2332
recoveryJob now knows if doing recovery or WRITETODATAFILES
2011-01-04 20:01:22 -05:00
Eliot Horowitz
b828d21630
ran astyle SERVER-2304
2011-01-04 00:40:41 -05:00
Dwight
7e711d39a2
comment
2011-01-03 12:31:03 -05:00
Mathias Stearn
a4045bc7cc
writev can't write to different offsets
2010-12-28 11:47:33 -05:00
Mathias Stearn
d5f1c31db8
Don't compute md5 in WRITETODATAFILES pass
2010-12-26 14:09:15 -05:00
Mathias Stearn
c76a27e18d
Use File::len()
2010-12-22 02:24:01 -05:00
Mathias Stearn
86216e47f9
Use File::write() rather than mmap in RecoveryJob. This is 20% faster on linux
2010-12-22 01:42:52 -05:00
Mathias Stearn
34c097a9b5
skip switch if < OpCode_Min (faster)
2010-12-21 23:27:19 -05:00
Mathias Stearn
b2a5fb0d9c
Too chatty
2010-12-21 21:23:53 -05:00
Mathias Stearn
42466ac48c
make it possible to avoid replaying durOps
2010-12-21 21:23:53 -05:00
Mathias Stearn
2e8dac2878
lock around critical sections of RecoverJob
2010-12-21 21:23:53 -05:00
Mathias Stearn
cebdea321d
static instance of RecoveryJob
2010-12-21 21:23:53 -05:00
Mathias Stearn
63cbf0d152
move RecoveryJob out to header file
2010-12-21 21:23:52 -05:00
dwight
cd8b0b6c35
dur try to elegantly handle ctrl c during recovery
2010-12-21 02:23:31 -05:00
dwight
6b3bf8eb22
more on seq nums
2010-12-21 01:59:33 -05:00
dwight
678a260283
dur sequence numbers to speed recovery
2010-12-20 22:49:37 -05:00
Mathias Stearn
3d53cd2b45
Refactor recovery code to pull out section processing.
...
Also no longer depend on write Alignment size
2010-12-20 18:33:29 -05:00
Mathias Stearn
cf7a7b7f3b
missing word
2010-12-20 18:33:29 -05:00
Mathias Stearn
0670df6a87
Use normal loop style rather than while(1) + break
2010-12-20 18:33:29 -05:00
Mathias Stearn
9fcb46f038
Manually revert JObjAppendOp stuff
2010-12-20 13:29:58 -05:00
dwight
174f063535
bufreader is a util
2010-12-19 21:16:37 -05:00
dwight
a3f04b6bc0
dur tiny optimization
2010-12-19 13:37:46 -05:00
dwight
1fb5ac5453
dur optimize writing to the oplog for durability
2010-12-19 10:54:45 -05:00
dwight
4efaae0566
dur optimizing seeting context to local database as that will be super common case
2010-12-17 08:00:06 -05:00
Mathias Stearn
83a78478c2
Remove support for non-checksummed journal file
2010-12-15 14:51:33 -05:00
Mathias Stearn
ab45b9af25
Correct handling of dbname pointer in journal recovery
2010-12-15 14:43:05 -05:00
dwight
6689861a0d
Revert "Revert "str stuff""
...
This reverts commit 0e3aed4922a0c16756e1101b3c2ba24d1a10d9dc.
2010-12-15 10:42:50 -05:00
dwight
dad23bdae0
Revert "str stuff"
...
This reverts commit c4b67bcf8092dec4dc2bc20a86808d5fde517381.
2010-12-15 10:42:45 -05:00
dwight
62fbef60e7
str stuff
2010-12-15 10:42:43 -05:00
dwight
ba84222056
use relative paths in the journal
2010-12-14 20:27:24 -05:00
Mathias Stearn
bd8b5fe801
rename --durTrace to --durOptions
2010-12-13 18:54:53 -05:00
dwight
c7c5a57b1f
eliminate the _DURABLE preprocessor define
2010-12-13 18:03:32 -05:00
dwight
51bc560803
dur drop database handling
2010-12-12 19:47:10 -05:00
dwight
c853e9a206
work around a header include dependency issue; plus misc cleaning
2010-12-12 10:59:16 -05:00