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

The PageWriter has cache buffer so that it doesn't call the Writer until the cache is almost full. Since the data's length is random, the pending bytes should be always less than cache buffer size, instead of page size. Fix: #16255 Signed-off-by: Wei Fu <fuweid89@gmail.com> (cherry picked from commit fddd1add52b33649a99d7f756404924138344a10) Signed-off-by: Wei Fu <fuweid89@gmail.com>
pkg/ is a collection of utility packages used by etcd without being specific to etcd itself. A package belongs here only if it could possibly be moved out into its own repository in the future.