Skip to content
Snippets Groups Projects
Unverified Commit c8effab7 authored by jiangxinmeng1's avatar jiangxinmeng1 Committed by GitHub
Browse files

Fix ut TestAddrVersion (#2776)

parent 455725d3
No related branches found
No related tags found
No related merge requests found
......@@ -73,9 +73,8 @@ func TestAddrVersion(t *testing.T) {
}
testutils.WaitExpect(4000, func() bool {
s.addrmu.RLock()
defer s.addrmu.RUnlock()
return len(s.addrs[entry.GTUncommit]) == 5
t.Log(s.GetSynced(entry.GTUncommit))
return s.GetSynced(entry.GTUncommit) == 10
})
s.addrmu.RLock()
defer s.addrmu.RUnlock()
......
......@@ -208,8 +208,8 @@ func (base *syncBase) OnEntryReceived(v *entry.Info) error {
}
// fmt.Printf("receive uncommit %d-%d\n", v.Group, v.GroupLSN)
default:
base.syncing[v.Group] = v.GroupLSN
}
base.syncing[v.Group] = v.GroupLSN
base.addrmu.Lock()
defer base.addrmu.Unlock()
addr := v.Info.(*VFileAddress)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment