wescale icon indicating copy to clipboard operation
wescale copied to clipboard

Feature Request: Rewrite Select for Lock-related Functions(engine.Lock)

Open earayu opened this issue 1 year ago • 2 comments

Background:

The Select function for lock-related functions generates an engine.Lock type of plan and has a corresponding execution function. However, there is still room for improvement in terms of their correctness and compatibility with MySQL.

Solution:

We need to rewrite engine.Lock primitive and related planner. The VTGate layer need not to evaluate expressions or split the locking functions. Just like engine.Send, VTGate should send the SQL to VTTablet, and add some flags in session. That's all.

earayu avatar May 31 '23 02:05 earayu