increase log file chunk size to avoid running out of file descriptors

This commit is contained in:
Sears Russell 2011-11-04 20:45:06 +00:00
parent 650e8ed7e1
commit e081793f32

View file

@ -676,7 +676,7 @@ stasis_log_t* stasis_log_file_pool_open(const char* dirname, int filemode, int f
fp->live_count = 0; fp->live_count = 0;
fp->dead_count = 0; fp->dead_count = 0;
fp->target_chunk_size = 64 * 1024 * 1024; fp->target_chunk_size = 512 * 1024 * 1024;
fp->filemode = filemode | O_DSYNC; /// XXX should not hard-code O_SYNC. fp->filemode = filemode | O_DSYNC; /// XXX should not hard-code O_SYNC.
fp->fileperm = fileperm; fp->fileperm = fileperm;