raftstore: fix compact_to for entry cache (#10722)
raftstore: fix compact_to for entry cache (#10722)

* fix compact_to

Signed-off-by: gengliqi <gengliqiii@gmail.com>

* update unit test

Signed-off-by: gengliqi <gengliqiii@gmail.com>

Co-authored-by: Ti Chi Robot <040e6455cde1c91e876ec337e785ce913eacba35@tidb.io>
BusyJay/tikv,BusyJay/tikv,BusyJay/tikv,BusyJay/tikv