Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
YANGGMM committed Dec 18, 2024
1 parent 1710c3a commit 97d4e82
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/frontend/pitr.go
Original file line number Diff line number Diff line change
Expand Up @@ -973,13 +973,11 @@ func doRestorePitr(ctx context.Context, ses *Session, stmt *tree.RestorePitr) (s
toAccountId, rtnErr = getAccountId(ctx, bh, accountName)
if rtnErr != nil {
// need create a new account
rtnErr = createDroppedAccount(ctx, ses, bh, pitrName, *accountRecord)
if rtnErr != nil {
if rtnErr = createDroppedAccount(ctx, ses, bh, pitrName, *accountRecord); rtnErr != nil {
return
}

toAccountId, rtnErr = getAccountId(ctx, bh, accountRecord.accountName)
if rtnErr != nil {
if toAccountId, rtnErr = getAccountId(ctx, bh, accountRecord.accountName); rtnErr != nil {
return
}
}
Expand Down

0 comments on commit 97d4e82

Please sign in to comment.