Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
  • Loading branch information
c3y1huang committed Aug 9, 2024
1 parent 022f463 commit 7e34647
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions deltablock.go
Original file line number Diff line number Diff line change
Expand Up @@ -843,8 +843,9 @@ func RestoreDeltaBlockBackupIncrementally(ctx context.Context, config *DeltaRest
lastBackupName := config.LastBackupName
deltaOps := config.DeltaOps
if deltaOps == nil {
return fmt.Errorf("missing DeltaBlockBackupOperations")
return fmt.Errorf("missing DeltaRestoreOperations")
}

bsDriver, err := GetBackupStoreDriver(backupURL)
if err != nil {
return err
Expand Down Expand Up @@ -936,7 +937,7 @@ func RestoreDeltaBlockBackupIncrementally(ctx context.Context, config *DeltaRest
defer func() {
_ = deltaOps.CloseVolumeDev(volDev)
if unlockErr := lock.Unlock(); unlockErr != nil {
logrus.WithError(err).Warn("Failed to unlock")
logrus.WithError(unlockErr).Warn("Failed to unlock")
}
}()

Expand Down

0 comments on commit 7e34647

Please sign in to comment.