mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
Product binaries (cmd/blockmaster, cmd/blockvolume) and core/host wiring for volume-scoped assignment delivery, durable authority with Windows rename retry, and the T0 closure test set (D1 L2 subprocess, D2 G1 adversarial, D3 concurrent write-reload regression, D4 hosting-smoke scenario + Go-native replay, D5 --topology flag). Diagnostic surfaces: ObservationStore.SupersededCount (PCDD-DELAYED-HB-001 evidence, not authority input) and SetNowForTest clock seam on Store/Host, guarded by grep test ensuring the identifier stays out of production files.
26 lines
1.0 KiB
Go
26 lines
1.0 KiB
Go
package main
|
|
|
|
// The durable-authority bootstrap logic now lives in
|
|
// core/host/bootstrap so that both cmd/sparrow and cmd/v3master
|
|
// can share it. This file keeps the prior sparrow-internal names
|
|
// as thin aliases so existing S5 / S7 tests compile unchanged.
|
|
|
|
import (
|
|
"github.com/seaweedfs/seaweed-block/core/authority"
|
|
"github.com/seaweedfs/seaweed-block/core/host/bootstrap"
|
|
)
|
|
|
|
// DurableAuthorityBootstrap is re-exported from core/host/bootstrap
|
|
// so existing sparrow code and tests can keep using the short name.
|
|
type DurableAuthorityBootstrap = bootstrap.DurableAuthorityBootstrap
|
|
|
|
// Bootstrap and BootstrapFromStore are forwarded to the shared
|
|
// library. Signatures are preserved verbatim.
|
|
func Bootstrap(storeDir string, directive authority.Directive) (*DurableAuthorityBootstrap, error) {
|
|
return bootstrap.Bootstrap(storeDir, directive)
|
|
}
|
|
|
|
func BootstrapFromStore(lock *authority.StoreLock, store authority.AuthorityStore, directive authority.Directive) (*DurableAuthorityBootstrap, error) {
|
|
return bootstrap.BootstrapFromStore(lock, store, directive)
|
|
}
|