Пример #1
0
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
}
Пример #2
0
func rollBackVolumeCreate(vol *volume.Volinfo) error {
	_ = volume.RemoveBrickPaths(vol.Bricks)
	return nil
}