https://github.com/facebook/rocksdb
Revision 1ba5abca97b4728b2b6b0d2f9395ebf387f9a2ae authored by Abhishek Kona on 13 March 2013, 20:50:26 UTC, committed by Abhishek Kona on 13 March 2013, 20:50:26 UTC
Summary:
Ftruncate does not throw an error on disk-full. This causes Sig-bus in
the case where the database tries to issue a Put call on a full-disk.

Use posix_fallocate for allocation instead of truncate.
Add a check to use MMaped files only on ext4, xfs and tempfs, as
posix_fallocate is very slow on ext3 and older.

Test Plan: make all check

Reviewers: dhruba, chip

Reviewed By: dhruba

CC: adsharma, leveldb

Differential Revision: https://reviews.facebook.net/D9291
1 parent 4e581c6
History
Tip revision: 1ba5abca97b4728b2b6b0d2f9395ebf387f9a2ae authored by Abhishek Kona on 13 March 2013, 20:50:26 UTC
Use posix_fallocate as default.
Tip revision: 1ba5abc
File Mode Size
VALGRIND_LOGS
db
doc
hdfs
helpers
include
java
linters
port
scribe
snappy
table
thrift
tools
util
.arcconfig -rw-r--r-- 243 bytes
.gitignore -rw-r--r-- 174 bytes
LICENSE -rw-r--r-- 1.4 KB
Makefile -rw-r--r-- 10.8 KB
README -rw-r--r-- 2.2 KB
README.fb -rw-r--r-- 98 bytes
build_detect_platform -rwxr-xr-x 8.6 KB
build_detect_version -rwxr-xr-x 1.2 KB
build_java.sh -rwxr-xr-x 1.9 KB
fbcode.clang31.sh -rw-r--r-- 3.1 KB
fbcode.gcc471.sh -rw-r--r-- 2.9 KB
regression_build_test.sh -rwxr-xr-x 2.3 KB
valgrind_test.sh -rwxr-xr-x 417 bytes

README

back to top