示例#1
0
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)
}
示例#2
0
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()
}