mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
nomad: avoid replication consistency issues by setting MinQueryIndex
This commit is contained in:
@@ -721,9 +721,10 @@ START:
|
||||
req := structs.ACLPolicySetRequest{
|
||||
Names: update,
|
||||
QueryOptions: structs.QueryOptions{
|
||||
Region: s.config.AuthoritativeRegion,
|
||||
SecretID: s.ReplicationToken(),
|
||||
AllowStale: true,
|
||||
Region: s.config.AuthoritativeRegion,
|
||||
SecretID: s.ReplicationToken(),
|
||||
AllowStale: true,
|
||||
MinQueryIndex: resp.Index - 1,
|
||||
},
|
||||
}
|
||||
var reply structs.ACLPolicySetResponse
|
||||
@@ -865,9 +866,10 @@ START:
|
||||
req := structs.ACLTokenSetRequest{
|
||||
AccessorIDS: update,
|
||||
QueryOptions: structs.QueryOptions{
|
||||
Region: s.config.AuthoritativeRegion,
|
||||
SecretID: s.ReplicationToken(),
|
||||
AllowStale: true,
|
||||
Region: s.config.AuthoritativeRegion,
|
||||
SecretID: s.ReplicationToken(),
|
||||
AllowStale: true,
|
||||
MinQueryIndex: resp.Index - 1,
|
||||
},
|
||||
}
|
||||
var reply structs.ACLTokenSetResponse
|
||||
|
||||
Reference in New Issue
Block a user