diff --git a/CHANGELOG.md b/CHANGELOG.md index 02bde4f0..6a6b8696 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. * Added validation of the master presence in replicaset and the master connection to the `utils.get_space` method before receiving the space from the connection (#331). +* Fixed fiber cancel on schema reload timeout in `call_reload_schema`. ## [0.14.1] - 10-11-22 diff --git a/crud/common/schema.lua b/crud/common/schema.lua index ab86df07..1cbc01f1 100644 --- a/crud/common/schema.lua +++ b/crud/common/schema.lua @@ -37,7 +37,7 @@ local function call_reload_schema(replicasets) for _ = 1,replicasets_num do if channel:get(const.RELOAD_SCHEMA_TIMEOUT) == nil then for _, f in ipairs(fibers) do - if fiber:status() ~= 'dead' then + if f:status() ~= 'dead' then f:cancel() end end