Files
seaweedfs/seaweed-block/cmd/sparrow/bootstrap.go
T
wzcheng99 55793d49bc T0 closure: blockmaster/blockvolume hosting + D1-D5 tests
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.
2026-04-21 02:02:52 -07:00

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)
}