Skip to content
Discussion options

You must be logged in to vote

Hi @dntam00,

Yes, it is intentional. The client tries to take a lock by setting the corresponding keys in sequence. For example, if your key majority is 2 and you try to acquire a lock "my_lock", it will send the following requests sequentially:

SET rueidislock:0:my_lock NX PXAT ts
SET rueidislock:1:my_lock NX PXAT ts
SET rueidislock:2:my_lock NX PXAT ts

If any of them fail with ErrNotLocked means the lock is still held by others and no need to continue.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dntam00
Comment options

Answer selected by dntam00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants