Merge pull request #16483 from hashicorp/jbardin/consistent-s3
dynamoDB reads are not fully consisten by default
This commit is contained in:
commit
c34265acac
|
@ -272,6 +272,7 @@ func (c *RemoteClient) getMD5() ([]byte, error) {
|
|||
},
|
||||
ProjectionExpression: aws.String("LockID, Digest"),
|
||||
TableName: aws.String(c.ddbTable),
|
||||
ConsistentRead: aws.Bool(true),
|
||||
}
|
||||
|
||||
resp, err := c.dynClient.GetItem(getParams)
|
||||
|
@ -342,6 +343,7 @@ func (c *RemoteClient) getLockInfo() (*state.LockInfo, error) {
|
|||
},
|
||||
ProjectionExpression: aws.String("LockID, Info"),
|
||||
TableName: aws.String(c.ddbTable),
|
||||
ConsistentRead: aws.Bool(true),
|
||||
}
|
||||
|
||||
resp, err := c.dynClient.GetItem(getParams)
|
||||
|
|
Loading…
Reference in New Issue