mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 02:57:37 +01:00
A guard on hostConfig's LinesNameTheirProcess, the refusal control also checks nothing is recorded, and the M3 diagram and table state the adoption guard (the row maps to M2 refresh and M3 adoption). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
549 B
Go
15 lines
549 B
Go
package main
|
|
|
|
import "testing"
|
|
|
|
// The volume this command runs adopts no primary line that names no
|
|
// process: the master stamps every line with the process it was issued
|
|
// for, and an unnamed one is re-issued for this process on its first
|
|
// report. Off, a restarted process could take an unnamed line and reuse a
|
|
// dead process's sessions.
|
|
func TestHostConfigAdoptsOnlyLinesNamingThisProcess(t *testing.T) {
|
|
if !hostConfig(flags{}, nil).LinesNameTheirProcess {
|
|
t.Fatal("the shipping command adopts primary lines that name no process")
|
|
}
|
|
}
|