Skip to content

Commit 906a2d3

Browse files
committed
bugfix: fiber cancel on schema reload timeout
Fixed fiber cancel on schema reload timeout. Before that, an error occurred in timeout case with description: `calling 'status' on bad self (fiber expected, got table)`. To reproduce the error before this fix, it is enough to checkout to the one commit back and perform the action described in #331.
1 parent 9bf65ec commit 906a2d3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1515
* Added validation of the master presence in replicaset and the
1616
master connection to the `utils.get_space` method before
1717
receiving the space from the connection (#331).
18+
* Fixed fiber cancel on schema reload timeout in `call_reload_schema`.
1819

1920
## [0.14.1] - 10-11-22
2021

crud/common/schema.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ local function call_reload_schema(replicasets)
3737
for _ = 1,replicasets_num do
3838
if channel:get(const.RELOAD_SCHEMA_TIMEOUT) == nil then
3939
for _, f in ipairs(fibers) do
40-
if fiber:status() ~= 'dead' then
40+
if f:status() ~= 'dead' then
4141
f:cancel()
4242
end
4343
end

0 commit comments

Comments
 (0)