We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eefef58 commit 22a0fccCopy full SHA for 22a0fcc
crud/common/rebalance.lua
@@ -1,4 +1,5 @@
1
local fiber = require('fiber')
2
+local log = require('log')
3
local vshard_consts = require('vshard.consts')
4
local utils = require('crud.common.utils')
5
@@ -84,6 +85,13 @@ local function safe_mode_disable()
84
85
end
86
87
local function rebalance_init()
88
+ -- box.watch was introduced in tarantool 2.10.0
89
+ if box.watch == nil then
90
+ log.warn('This version of tarantool does not support autoswitch to safe mode during rebalance. '
91
+ .. 'Update to newer version or use `_crud.rebalance_safe_mode_enable()` to enable safe mode manually.')
92
+ return
93
+ end
94
+
95
box.watch('box.status', function()
96
if box.info.ro then
97
return
0 commit comments