Add config option for max commit iterations
This commit is contained in:
1 parent
eb806342b8
commit
52bec5b46f
2 files changed
+4
-2
No files matched your search
+2
-1
@@ -29,7 +29,8 @@ InstanceSet = require './instance-set'
|
||||
defaultProvisions = require './default-provisions'
|
||||
gpnHeuristic = require './gpn-heuristic'
|
||||
|
||||
MAX_ITERATIONS = 64
|
||||
# Multiply by two because every iteration is two phases: read and update
|
||||
MAX_ITERATIONS = config.get('MAX_COMMIT_ITERATIONS') * 2
|
||||
|
||||
provisionsCache = new WeakMap()
|
||||
virtualParametersCache = new WeakMap()
|
||||
|
||||
Reference in new issue
Block a user