func rollBackVolumeCreate(c transaction.TxnCtx) error { var vol volume.Volinfo e := c.Get("volinfo", &vol) if e != nil { return errors.New("failed to get volinfo from context") } _ = volume.RemoveBrickPaths(vol.Bricks) return nil }
func rollBackVolumeCreate(vol *volume.Volinfo) error { _ = volume.RemoveBrickPaths(vol.Bricks) return nil }