mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

In test situations, it's useful to create smaller than usual WAL files to test rotation and to avoid the overhead of preallocation on old-style filesystems that don't handle it efficiently. This commit changes segmentSizeBytes to an exported variable so that tests can override it from an init() function.