sql: descriptor acquisition waits for in-flight lease acquisition unnecessarily #18851
Labels
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
cockroach/pkg/sql/lease.go
Line 592 in 4a23ce1
The misnamed
tableState.acquire()
is given a timestamp and asked to return a descriptor valid for that timestamp. It invariably waits for any in-flight lease acquisitions, even if the timestamp is below the frontier at which leases are needed.The text was updated successfully, but these errors were encountered: