smallstep / nosql

NoSQL is an abstraction layer for data persistency
Apache License 2.0
20 stars 23 forks source link

Refactor CmpAndSwap to use a single atomic statement #32

Closed tashian closed 1 year ago

tashian commented 2 years ago

@dopey Tests are passing on my crappy Go code. I ended up with two nearly identical functions, but I know there's some Go magic I'm missing that will make this into one function. Show me the way!

dopey commented 1 year ago

We are closing this for the time being. The existing CmpAndSwap interface is quite unique and difficult to replicate with a single atomic statement.