etcdserver: fix snapshot index in creation log line

The snapshot is created at appliedi instead of snapi.
This commit is contained in:
Yicheng Qin 2015-11-05 13:59:54 -08:00
parent dadfdf6af8
commit 0874c44cdc

View File

@ -560,7 +560,7 @@ func (s *EtcdServer) run() {
}
case <-s.r.raftStorage.reqsnap():
s.r.raftStorage.raftsnap() <- s.createRaftSnapshot(appliedi, confState)
plog.Infof("requested snapshot created at %d", snapi)
plog.Infof("requested snapshot created at %d", appliedi)
case err := <-s.errorc:
plog.Errorf("%s", err)
plog.Infof("the data-dir used by this member must be removed.")