]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Use posix_fallocate as default. v1.5.8
authorAbhishek Kona <abhishekk@fb.com>
Wed, 13 Mar 2013 20:50:26 +0000 (13:50 -0700)
committerAbhishek Kona <abhishekk@fb.com>
Wed, 13 Mar 2013 20:50:26 +0000 (13:50 -0700)
commit1ba5abca97b4728b2b6b0d2f9395ebf387f9a2ae
tree3c514fa535bf61be2afbce4495a2198ca9f8d108
parent4e581c6ab436f9c151b9436742532da88798f9b8
Use posix_fallocate as default.

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
README
util/env_posix.cc