func (r *editNodeRun) startEditNode(en *editNodeBase, rows planNode, tw tableWriter) error { if sqlbase.IsSystemConfigID(en.tableDesc.GetID()) { // Mark transaction as operating on the system DB. en.p.txn.SetSystemConfigTrigger() } r.rows = rows r.tw = tw return r.tw.init(en.p.txn) }
func (r *editNodeRun) expandEditNodePlan(en *editNodeBase, tw tableWriter) error { if sqlbase.IsSystemConfigID(en.tableDesc.GetID()) { // Mark transaction as operating on the system DB. en.p.txn.SetSystemConfigTrigger() } if err := tw.expand(); err != nil { return err } r.tw = tw return r.rows.expandPlan() }