From 7e34647347fa33aee42c66251790ead91998f60d Mon Sep 17 00:00:00 2001 From: Chin-Ya Huang Date: Mon, 5 Aug 2024 16:43:27 +0800 Subject: [PATCH] fix: typo Signed-off-by: Chin-Ya Huang --- deltablock.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deltablock.go b/deltablock.go index 99e022f39..63864b186 100644 --- a/deltablock.go +++ b/deltablock.go @@ -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 @@ -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") } }()