redis_queued_locks 0.0.34 → 0.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/redis_queued_locks/resource.rb +2 -2
- data/lib/redis_queued_locks/version.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e16184437150045fd98daf2ab2aaa328e0e7b0bae2a3bb513db25ea7eb535d6
|
4
|
+
data.tar.gz: 1965028261e953591dc707baea43801ed0ec506a85bd4de67c0a4e17cda52820
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0cff23e13e47de8bd207597c65e0e036bbf971caad6dbd062628ca8e1975467d52834cc83787a5b4f41b3b88310eb88fe17aba93b2776687d0e5af9913d44b4
|
7
|
+
data.tar.gz: a963e804304ff4884669244f07a41061c7cc7ed56ad72f702bc41a42e7e4f8985d4f8b27d330a62afdce652123343cddae390a75d8bd8cdbab354ac54f4dd118
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.0.35] - 2024-03-26
|
4
|
+
### Changed
|
5
|
+
- The random unique client instance identifier now uses 16-byte strings instead of 10-btes in order to prevent potential collisions;
|
6
|
+
|
3
7
|
## [0.0.34] - 2024-03-26
|
4
8
|
### Changed
|
5
9
|
- Removing the acquirer from the request queue during a lock obtaining logic now using more proper and accurate `ZREM` instead of `ZPOPMIN` for this;
|
@@ -22,7 +22,7 @@ module RedisQueuedLocks::Resource
|
|
22
22
|
LOCK_QUEUE_PATTERN = 'rql:lock_queue:*'
|
23
23
|
|
24
24
|
class << self
|
25
|
-
# Returns
|
25
|
+
# Returns 16-byte unique identifier. It is used for uniquely
|
26
26
|
# identify current process between different nodes/pods of your application
|
27
27
|
# during the lock obtaining and self-identifying in the lock queue.
|
28
28
|
#
|
@@ -31,7 +31,7 @@ module RedisQueuedLocks::Resource
|
|
31
31
|
# @api private
|
32
32
|
# @since 0.1.0
|
33
33
|
def calc_uniq_identity
|
34
|
-
SecureRandom.hex(
|
34
|
+
SecureRandom.hex(8)
|
35
35
|
end
|
36
36
|
|
37
37
|
# @param process_id [Integer,String]
|