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

Encoding store into json snapshot has quite high CPU cost. And it will block for a while. This commit makes the encoding process non- blocking by running it in another go-routine.