Commit Graph

64 Commits

Author SHA1 Message Date
Mathias Stearn
1bc1c3cc3a Make sure parent dir exists before creating a file 2011-01-12 16:16:25 -05:00
Eliot Horowitz
51ca8ee218 FileAllocator cleaning 2011-01-09 01:45:33 -05:00
Eliot Horowitz
b828d21630 ran astyle SERVER-2304 2011-01-04 00:40:41 -05:00
Eliot Horowitz
32f28606d7 toward standards 2010-12-30 13:41:15 -05:00
Eliot Horowitz
202ae7ec72 moving impl. of FileAllocator to .cpp 2010-12-30 13:41:15 -05:00
dwight
76f0389f8c dur 2010-11-25 11:09:18 -05:00
Alberto Lerner
e8cc3182d0 diskfull.js expects to see the message 2010-10-25 10:38:19 -04:00
dwight
2c6d8c8fe8 much cleaner error messages on out of disk space. we shouldnt print a stack trace on disk full (IMO) 2010-10-24 11:47:00 -04:00
Alberto Lerner
5f7500bf01 Pull timer.h and time_support.h out of goodies.h
The code on both the new header files is essentially the same. This
commit just adjusted #include in dependent modules. The new headers
did not make to pch.h.

This change is in preparation for some improvements in code that is
now in time_support.h
2010-09-16 09:18:46 -04:00
dwight
72a9a42bdb compile 2010-09-09 07:46:22 -04:00
Mathias Stearn
aa547ad8f2 Don't put 256k array on stack. Caused overflow on OpenBSD 2010-07-20 14:12:33 -04:00
Richard Kreuter
c73493e69e More error verbosity in file_allocator. 2010-07-15 16:28:30 -04:00
Frank DENIS
ab204d9f24 Make MongoDB compile and work on OpenBSD (gcc4 archs, tested on OpenBSD-current/amd64). 2010-06-22 06:49:49 +08:00
Dwight Merriman
c1ecb70ef3 cleaning db.vcxproj 2010-06-01 08:56:06 -04:00
Dwight Merriman
edc97846b7 try to fix linux 2010-05-26 00:54:53 -04:00
Eliot Horowitz
f947bce011 don't define __linux__ on sun 2010-04-27 15:48:38 -04:00
Dwight
bd28578ab8 stdafx->pch 2010-04-27 15:27:52 -04:00
Eliot Horowitz
ef6b1e355e tweaks for posix_fallocate 2010-04-27 14:02:11 -04:00
Eliot Horowitz
241ba14f4d sun 2010-04-27 13:29:26 -04:00
Eliot Horowitz
2e596ac2bb windows 2010-04-27 13:28:31 -04:00
Eliot Horowitz
3f8a0d553a use posix_fallocate on linux SERVER-1057 2010-04-27 13:18:51 -04:00
Dwight Merriman
07757ed88a missed one errnowithdescription 2010-04-24 14:22:43 -04:00
Dwight Merriman
0c7e5438e0 get rid of macros in log.h 2010-04-24 14:03:14 -04:00
Aaron
c457973dc6 SERVER-695 expose boost object to work better with older boost versions 2010-03-15 09:56:10 -07:00
Aaron
c971842a55 Revert "Revert "SERVER-695 don't destroy static global mutexes""
This reverts commit eb7cde3e75.

Conflicts:

	db/instance.h
2010-03-15 09:42:01 -07:00
Eliot Horowitz
c39b3ddb54 make allocation handle smaller os buffers 2010-02-04 12:07:33 -05:00
Eliot Horowitz
f7901fdc2c better errno reporting 2010-02-04 10:59:13 -05:00
Aaron
16d1616853 SERVER-541 make file allocation start log more precise 2010-01-25 12:11:08 -08:00
Aaron
d377e7ad99 SERVER-228 assert rather than exit when run out of disk space 2010-01-11 11:24:20 -08:00
unknown
84d1ca75f7 SERVER-255 lock on fsync for snapshotting
will be doc'd later today
2010-01-02 11:01:47 -05:00
Eliot Horowitz
0ab8149a8e uassert/massert take error code SERVER-112 2009-12-28 16:43:43 -05:00
Eliot Horowitz
bbd33359d9 Merge branch 'master' of git@github.com:mongodb/mongo
Conflicts:
	util/mmap_posix.cpp
2009-12-21 10:06:52 -05:00
Eliot Horowitz
8f1e01b0e4 macro for errno so messages are consistent and have full debugging 2009-12-21 10:06:14 -05:00
Dwight
9a7f5fb2d0 comment 2009-12-18 17:47:40 -05:00
Mathias Stearn
d27c8505ea all client files now marked as Apache 2.0. SERVER-329. 2009-10-27 15:59:37 -04:00
Dwight
71af757e56 use posix_fadvise when we populate a new datafile 2009-09-21 10:05:03 -04:00
Dwight
8de1e62a37 minor comments 2009-09-01 10:31:12 -04:00
Eliot Horowitz
79be4b64a3 clean up dbexit with an ExitCode enum SERVER-183 2009-08-05 16:00:27 -04:00
Eliot Horowitz
bd018f61d5 long instead of int for file size 2009-07-09 16:56:34 -04:00
Aaron
6a2a8d385f comments MINOR 2009-05-28 15:22:24 -04:00
Aaron
c03a7186cf file allocator compile windows MINOR 2009-05-28 12:59:27 -04:00
Aaron
83be71666f wait for file allocator to finish before removing files 2009-05-27 17:23:47 -04:00
Eliot Horowitz
b8c3d46986 support compilation under FreeBSD 7.x
merged from goosmurf
Conflicts:

	README
2009-05-27 10:44:45 -04:00
Aaron
b7c67bbf4a check exception when cleaning up file on failed allocation MINOR 2009-05-12 14:27:23 -04:00
Aaron
f2b9332f97 when exhaust disk space, delete file and exit immediately 2009-05-12 13:38:33 -04:00
Aaron
9adf110885 clean up locking in file allocator; unlike in doc example, lock may be held when notification sent 2009-05-12 12:18:43 -04:00
Aaron
56e2e866bd hopefully compile win 2009-04-16 10:33:21 -04:00
Dwight
3fce2036d8 compile visual studio windows 2009-04-16 09:16:43 -04:00
Aaron
f86d33372d update size in map and allocate asap interfaces 2009-04-15 16:11:54 -04:00
Aaron
ab078d2e96 Revert "Revert "add errno header for non osx MINOR""
This reverts commit ae473981f5.
2009-04-15 16:10:54 -04:00