Merge pull request #16483 from hashicorp/jbardin/consistent-s3

dynamoDB reads are not fully consisten by default
This commit is contained in:
James Bardin 2017-10-27 17:22:50 -04:00 committed by GitHub
commit c34265acac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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)