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 the replica's ActiveChain and SnapshotLvolMap is not constructed while creating replica, the mismatches found by the validateAndUpdate() will result in the error state of the replica. ``` .... 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 10049 Signed-off-by: Derek Su <[email protected]>
- Loading branch information