update segment size on gc

This commit is contained in:
vyzo
2019-05-09 11:20:12 +03:00
parent e7e511ba99
commit 303b1b6207

View File

@@ -112,6 +112,7 @@ func (mab *memoryAddrBook) gc() {
delete(s.addrs, p)
}
}
atomic.StoreUint32(&s.size, uint32(len(s.addrs)))
s.lk.Unlock()
}