Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(replica): reconstruct ActiveChain and SnapshotLvolMap while creat…
…ing replica If a replica's ActiveChain is not constructed while creating it, the mismatch found by the validateAndUpdate() will result in the error state. ``` .... newSnapshotLvolMap, err := constructSnapshotLvolMap(r.Name, bdevLvolMap) if err != nil { return err } if len(r.SnapshotLvolMap) != len(newSnapshotLvolMap) { return fmt.Errorf("replica current active snapshot ....") } ... ```` Longhorn 10033 Signed-off-by: Derek Su <[email protected]>
- Loading branch information