tpcc-runner icon indicating copy to clipboard operation
tpcc-runner copied to clipboard

[NoWait, WaitDie] Need downgrade of rw-lock

Open rotaki opened this issue 4 years ago • 0 comments

https://github.com/wattlebirdaz/tpcc-runner/blob/fdfc8f0759705e7a95989557fe6837842af44871/protocols/nowait/include/nowait.hpp#L68-L135

Unlocking the next-key in insert operation causes unlocking of read-lock if a read to the next-key precedes the insert. To fix this, a method to downgrade locks from W->R is needed.

rotaki avatar Oct 14 '21 07:10 rotaki