Tick version clock on load

This commit is contained in:
Jakob Borg
2014-07-17 11:13:23 +02:00
parent 91cc0cd05e
commit ec212f73eb
2 changed files with 36 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ package files
import (
"sync"
"github.com/calmh/syncthing/lamport"
"github.com/calmh/syncthing/protocol"
"github.com/syndtr/goleveldb/leveldb"
)
@@ -40,6 +41,7 @@ func NewSet(repo string, db *leveldb.DB) *Set {
if f.LocalVersion > s.localVersion[nodeID] {
s.localVersion[nodeID] = f.LocalVersion
}
lamport.Default.Tick(f.Version)
return true
})
if debug {