Skip to content

Commit

Permalink
adding rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
gouhongshen committed Dec 17, 2024
1 parent 10ef75a commit 5cc78b6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/vm/engine/tae/db/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,15 @@ func (c *Controller) handleToReplayCmd(cmd *controlCmd) {
})); err != nil {
return
}
rollbackSteps.Push(struct {
fn func() error
desc string
}{
fn: func() error {
return c.db.TxnServer.SwitchTxnHandleStateTo(rpc2.TxnLocalHandle)
},
desc: "rollback txn handle state",
})

// 4. build logtail tunnel to the new write candidate
// TODO
Expand Down

0 comments on commit 5cc78b6

Please sign in to comment.