Skip to content

Commit

Permalink
Storage: Add storage driver cache update to storagePoolCreateLocal (#…
Browse files Browse the repository at this point in the history
…14583)

Fixes #14046.

This PR adds a storage driver cache update to `storagePoolCreateLocal`.
`storagePoolCreateLocal` is called in `storagePoolsPostCluster` and
whenever a `storagePoolPost` request is a cluster notification.
  • Loading branch information
tomponline authored Dec 5, 2024
2 parents 9005251 + 93dd2e2 commit ac7aa74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lxd/storage_pools_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ func storagePoolCreateLocal(state *state.State, poolID int64, req api.StoragePoo
return nil, err
}

// Update the storage drivers cache in api_1.0.go.
storagePoolDriversCacheUpdate(state)

logger.Debug("Marked storage pool local status as created", logger.Ctx{"pool": req.Name})

revert.Success()
Expand Down

0 comments on commit ac7aa74

Please sign in to comment.