From 602ce24a15727ea3ad5c2f45da504e092b03ca7b Mon Sep 17 00:00:00 2001 From: chrislu Date: Sat, 23 Aug 2025 13:56:21 -0700 Subject: [PATCH] ensure uniqness --- weed/topology/node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/topology/node.go b/weed/topology/node.go index 0dfa0104a..00408af64 100644 --- a/weed/topology/node.go +++ b/weed/topology/node.go @@ -42,7 +42,7 @@ func (cr *CapacityReservations) addReservation(diskType types.DiskType, count in cr.Lock() defer cr.Unlock() - reservationId := fmt.Sprintf("%s-%d-%d", diskType, count, time.Now().UnixNano()) + reservationId := fmt.Sprintf("%s-%d-%d-%d", diskType, count, time.Now().UnixNano(), rand.Int64()) cr.reservations[reservationId] = &CapacityReservation{ reservationId: reservationId, diskType: diskType,