Files
seaweedfs/weed/server/block_service_host_effects.go
T
pingqiuandClaude Opus 4.6 1453274988 refactor: extract host effects adapter and define Phase 17 stop line
Move dispatcher-facing host effects out of volume_server_block.go into
blockcmd while keeping server-owned cache/state semantics in weed/server.
Document Batch 10 delivery and Batch 11 stop-line review so the
separation line closes without over-extracting readiness-state mutation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 08:43:21 -07:00

18 lines
534 B
Go

package weed_server
import engine "github.com/seaweedfs/seaweedfs/sw-block/engine/replication"
// StoreProjection keeps the latest published projection in the server-owned
// adapter cache used by outward/product-facing surfaces.
func (bs *BlockService) StoreProjection(volumeID string, projection engine.PublicationProjection) {
if bs == nil {
return
}
bs.coreProjMu.Lock()
if bs.coreProj == nil {
bs.coreProj = make(map[string]engine.PublicationProjection)
}
bs.coreProj[volumeID] = projection
bs.coreProjMu.Unlock()
}