sdong b666f85445 Consider more factors when determining preallocation size of WAL files
Summary: Currently the WAL file preallocation size is 1.1 * write_buffer_size. This, however, will be over-estimated if options.db_write_buffer_size or options.max_total_wal_size is set and is much smaller.

Test Plan: Add a unit test.

Reviewers: andrewkr, yiwu

Reviewed By: yiwu

Subscribers: leveldb, andrewkr, dhruba

Differential Revision: https://reviews.facebook.net/D63957
2016-09-19 12:04:35 -07:00
..
2016-09-12 15:31:42 -07:00
2016-09-12 15:31:42 -07:00
2016-09-13 21:11:59 -07:00
2016-09-13 21:11:59 -07:00
2016-09-13 21:11:59 -07:00
2016-06-09 19:03:10 -07:00
2016-07-08 17:50:51 -07:00
2016-08-11 23:34:19 -07:00
2016-07-08 17:50:51 -07:00
2016-09-13 21:11:59 -07:00
2016-07-13 15:36:22 -07:00
2016-09-13 21:11:59 -07:00
2016-09-13 21:11:59 -07:00
2016-09-13 21:11:59 -07:00
2016-09-13 21:11:59 -07:00
2016-06-25 08:29:40 +01:00