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

When loading from a backup with a snapshot and WAL, the length of WAL entries can be lower than the current index integer value, causing a panic when slicing off uncommitted entries. This looks for WAL entries higher than the current index before slicing.