Skip to content
Permalink
Browse files
AWS: Use strongly consistent read in DDBLockManager (#4763)
  • Loading branch information
singhpk234 committed May 25, 2022
1 parent 49684ac commit 815226b0f184d1bb95ba1d62765f79cd3355d0e1
Showing 1 changed file with 1 addition and 0 deletions.
@@ -200,6 +200,7 @@ public boolean acquire(String entityId, String ownerId) {
void acquireOnce(String entityId, String ownerId) {
GetItemResponse response = dynamo.getItem(GetItemRequest.builder()
.tableName(lockTableName)
.consistentRead(true)
.key(toKey(entityId))
.build());

0 comments on commit 815226b

Please sign in to comment.