Skip to content

Commit fb0b086

Browse files
committed
router: fix missing constant declaration
Router for tarantool 1.9 used a not declared variable DISCOVERY_INTERVAL. It was replaced with a new set of DISCOVERY_* variables for >= 1.10 in 3c16527 ("router: make discovery smoother in a big cluster"). The patch makes it use DISCOVERY_IDLE_INTERVAL. Because in 1.9 discovery is not stepwise. Closes #250
1 parent 57492fa commit fb0b086

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vshard/router/init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ discovery_f = function(router)
396396
local module_version = M.module_version
397397
while module_version == M.module_version do
398398
while not next(router.replicasets) do
399-
lfiber.sleep(consts.DISCOVERY_INTERVAL)
399+
lfiber.sleep(consts.DISCOVERY_IDLE_INTERVAL)
400400
end
401401
local old_replicasets = router.replicasets
402402
for rs_uuid, replicaset in pairs(router.replicasets) do
@@ -417,7 +417,7 @@ discovery_f = function(router)
417417
else
418418
discovery_handle_buckets(router, replicaset, active_buckets)
419419
end
420-
lfiber.sleep(consts.DISCOVERY_INTERVAL)
420+
lfiber.sleep(consts.DISCOVERY_IDLE_INTERVAL)
421421
end
422422
end
423423
end

0 commit comments

Comments
 (0)