coreos/etcd — pull request #1820 by xiang90 (2014-12-02 00:30:18+00:00)
Title: raft: fix memory storage

Memory storage should append all entries that have greater index
than the snap.Matedata.Index. We first truncate the old parts of
incoming entries. Then truncate the existing entries in the storage.
At last, we append the incoming entries to the existing entries.