cockroach icon indicating copy to clipboard operation
cockroach copied to clipboard

kvcoord: elide locking requests in txnWriteBuffer

Open stevendanna opened this issue 5 months ago • 1 comments

If we know that a sufficient lock is already held at the given sequence number, we can often elide duplicate locking requests. Currently, the only requests that modify the buffer are write requests.

The test adds skipped cases that would require us to buffer the returned locks and values.

Epic: none Release note: None

stevendanna avatar Jun 17 '25 11:06 stevendanna

This change is Reviewable

cockroach-teamcity avatar Jun 17 '25 11:06 cockroach-teamcity

TFTR!

I'm going to merge this one. But if there are any follow up comments, please feel free to leave them. I don't mind doing another PR to fix up issue.

bors r=yuzefovich

stevendanna avatar Jun 18 '25 21:06 stevendanna