Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

minor

chrislu215c5de5799f
diff --git a/weed/server/master_server_handlers.go b/weed/server/master_server_handlers.go
index f49b04e8c1..851cd2943b 100644
--- a/weed/server/master_server_handlers.go
+++ b/weed/server/master_server_handlers.go
@@ -140,7 +140,7 @@ func (ms *MasterServer) dirAssignHandler(w http.ResponseWriter, r *http.Request)
return
}
- for time.Now().Sub(startTime) < maxTimeout {
+ for time.Since(startTime) < maxTimeout {
fid, count, dnList, shouldGrow, err := ms.Topo.PickForWrite(requestedCount, option, vl)
if shouldGrow && !vl.HasGrowRequest() {
glog.V(0).Infof("dirAssign volume growth %v from %v", option.String(), r.RemoteAddr)