wait a bit before getting the next volume id if the leader is recently elected

This commit is contained in:
chrislu
2024-11-23 19:58:45 -08:00
parent 04081128a9
commit ccf1795e6f
3 changed files with 10 additions and 0 deletions

View File

@@ -55,6 +55,8 @@ type Topology struct {
UuidAccessLock sync.RWMutex
UuidMap map[string][]string
LastLeaderChangeTime time.Time
}
func NewTopology(id string, seq sequence.Sequencer, volumeSizeLimit uint64, pulse int, replicationAsMin bool) *Topology {