update
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m48s

This commit is contained in:
matst80
2024-11-10 17:01:22 +01:00
parent 15d966aaad
commit 7d7983b3ef
2 changed files with 8 additions and 0 deletions

View File

@@ -228,6 +228,7 @@ func (p *SyncedPool) RemoveHostMappedCarts(host *RemoteHost) {
defer p.mu.Unlock()
for id, r := range p.remoteIndex {
if r == host.Pool {
p.remoteIndex[id].Delete(id)
delete(p.remoteIndex, id)
}
}
@@ -376,6 +377,7 @@ func (p *SyncedPool) getGrainPool(id CartId) (GrainPool, error) {
p.mu.RUnlock()
if ok {
if remotePool == nil {
p.remoteIndex[id].Delete(id)
p.mu.Lock()
delete(p.remoteIndex, id)
p.mu.Unlock()