Skip to content

Commit f8ab523

Browse files
committed
use dynamodb consistent read to ensure we check against latest data
1 parent 3436fbe commit f8ab523

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cli/pkg/aws/dynamo_locking.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ func (dynamoDbLock *DynamoDbLock) GetLock(lockId string) (*int, error) {
205205
"PK": &types.AttributeValueMemberS{Value: "LOCK"},
206206
"SK": &types.AttributeValueMemberS{Value: "RES#" + lockId},
207207
},
208+
ConsistentRead: aws.Bool(true),
208209
}
209210

210211
result, err := dynamoDbLock.DynamoDb.GetItem(ctx, input)

0 commit comments

Comments
 (0)