mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 18:47:20 +01:00
The change of this PR's 22 commits, carried onto current main as one commit (its base was 1884 commits behind). Fitted to main: - pacing: main's rule that fallback-only leases are not paced stays; a healthy lease is paced at the budget over the held normal and urgent slots (this PR's rule) instead of over the configured slot count. TestFallbackDoesNotUnpaceAHealthyLease keeps its property (a healthy lease beside a fallback lease is paced) with a 500 ms deadline, since a lone holder now gets the whole budget. - the cut loop keeps main's attempted hook and afterStaging (a failed attempt that staged new chunks retries at the next poll), with the ticket handling; the random retry delay is gone, as this PR intends. - imports and constants: neither side's removed ones return. - invariants: main's new rows and this PR's new and restated rows; the slot-wait row is this PR's (ticket order, the next poll). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
10 lines
296 B
Go
10 lines
296 B
Go
//go:build windows
|
|
|
|
package hostlimit
|
|
|
|
import "golang.org/x/sys/windows"
|
|
|
|
// hostMonoNs reads the host's monotonic clock (time since boot), shared by
|
|
// every process on the host; it is never compared across hosts or reboots.
|
|
func hostMonoNs() int64 { return int64(windows.DurationSinceBoot()) }
|