Commit Graph

43 Commits

Author SHA1 Message Date
Eliot Horowitz
f0359e7b54 MongoFile::flushAll won't lock for entire flushing time 2010-07-26 16:06:49 -04:00
Eliot Horowitz
982332f807 fix debug build & repl hack 2010-07-02 19:17:18 -04:00
Mathias Stearn
c6ed1eb85f Block writes when not holding write-lock in debug build 2010-06-24 11:05:10 -04:00
Dwight
fc66d42192 rename memfiletemplate 2010-05-12 14:03:07 -04:00
Dwight
890bfc4981 mftemplate comments 2010-05-12 11:47:05 -04:00
Eliot Horowitz
f20f5b76f1 print filename for windows flush failure SERVER-1107 2010-05-10 11:26:08 -04:00
Mathias Stearn
dfa0c41aa1 Prevent calls to pure virtual functions in MongoFile SERVER-988
The issue was that during construction and destruction an object's vtable
points to the current type rather than the most derived type. ~MongoFile() tried
to take a lock, but the function holding the lock tried to use the object,
calling either the close() or flush() virtual methods. The solution was to move
the call that needed the lock to the most derived class's destructor. The
easiest way to increase the probability of this crash is by using --syncdelay 1.
2010-04-08 19:57:48 -04:00
dwight
b0a3df820c grow 2010-04-07 19:29:56 -04:00
Dwight
7e2be7ff64 compile 2010-04-07 17:16:51 -04:00
Dwight
977e246702 minor mmf 2010-04-06 18:05:30 -04:00
Dwight
89a3d0db82 towards storage engine pluggability 2010-04-05 17:26:40 -04:00
Dwight
d1138e570e cleaning 2010-04-02 16:43:10 -04:00
Dwight
666fb52bdd abstract out mmf administration 2010-04-02 11:28:32 -04:00
Dwight
8657d88065 mmf 3 2010-03-31 16:21:20 -04:00
Dwight
3cb1ef8cd9 make HeaderSize a const 2010-03-31 15:49:28 -04:00
Dwight
60a659e641 mmf abstraction 2010-03-31 12:45:40 -04:00
Dwight
f70df5352b cleaning 2010-03-30 10:11:28 -04:00
Eliot Horowitz
9c8858d85a printMemInfo helper, fix darwin virtual size reporting 2010-02-20 16:16:17 -05:00
Eliot Horowitz
424e7d9585 sequential option for mmap SERVER-607 2010-02-04 17:12:14 -05:00
Eliot Horowitz
f9d031f12c fsync command part of SERVER-255 2009-11-11 13:41:45 -05:00
Eliot Horowitz
9f77794640 MemoryMappedFile::flushAll 2009-11-11 13:02:04 -05:00
Mathias Stearn
d27c8505ea all client files now marked as Apache 2.0. SERVER-329. 2009-10-27 15:59:37 -04:00
Eliot Horowitz
b733978054 MemoryMappedFile::getTotalMapped 2009-10-07 12:42:43 -04:00
Eliot Horowitz
bd018f61d5 long instead of int for file size 2009-07-09 16:56:34 -04:00
Aaron
f86d33372d update size in map and allocate asap interfaces 2009-04-15 16:11:54 -04:00
Aaron
c99883578c Revert "Revert "allocate files in background""
This reverts commit e577a2c64e.
2009-04-15 16:10:21 -04:00
Aaron
e577a2c64e Revert "allocate files in background"
This reverts commit 0033bd91df.
2009-04-15 15:40:16 -04:00
Aaron
0033bd91df allocate files in background 2009-04-15 11:58:38 -04:00
Aaron
8974979813 Clean up signal handling, fixing some potential hangs 2009-02-02 09:52:14 -05:00
Eliot Horowitz
9406c59f80 broke mmap into different .cpp files for different platforms 2009-01-29 17:22:59 -05:00
Aaron
90d45238aa Indent all lines within namespaces one level 2009-01-15 10:17:11 -05:00
Aaron
248a6dd8de Replace tab indentation with spaces 2009-01-14 17:17:24 -05:00
Aaron
ad1f6b3cbd Put our code in 'mongo' namespace 2009-01-14 17:09:51 -05:00
Aaron
efe3736b94 Handle preexisting file with different length 2009-01-12 10:22:58 -05:00
Eliot Horowitz
491559d8c5 map entire file by default 2009-01-11 20:23:58 -05:00
Aaron
b7cbd30112 Replace tab indentation with spaces 2008-12-28 20:28:49 -05:00
Eliot Horowitz
50e8a1a3f5 added AGPL License Header to every file
take 2
2008-07-20 17:37:33 -04:00
Eliot Horowitz
383a862ad3 Revert "added AGPL License Header to every file"
Oops - added multiple times.

This reverts commit 608769fd03.
2008-07-20 17:34:22 -04:00
Eliot Horowitz
608769fd03 added AGPL License Header to every file 2008-07-20 17:33:02 -04:00
Dwight
0bc5be592d validate a little smarter 2008-06-29 22:33:59 -04:00
Dwight
58d84f51f2 close datafiles on any sort of termination (including seg fault) 2008-06-26 15:30:54 -04:00
Dwight
3051b961ca dos2unix 2008-06-06 09:43:15 -04:00
Dwight
e73188b551 first commit 2007-10-19 19:35:48 -04:00