mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-09-20 13:30:46 +02:00
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>
18 lines
534 B
Go
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()
|
|
}
|