Update etcd Godeps to 3.0.13

This commit is contained in:
Wojciech Tyczynski
2016-10-27 13:40:05 +02:00
parent bb2c36a7c0
commit 9132965253
8 changed files with 128 additions and 122 deletions

View File

@@ -408,6 +408,13 @@ func (s *store) restore() error {
s.currentRev = rev
}
// keys in the range [compacted revision -N, compaction] might all be deleted due to compaction.
// the correct revision should be set to compaction revision in the case, not the largest revision
// we have seen.
if s.currentRev.main < s.compactMainRev {
s.currentRev.main = s.compactMainRev
}
for key, lid := range keyToLease {
if s.le == nil {
panic("no lessor to attach lease")