From 20f57a8529ea61c505332208436375ae3b2ddb2f Mon Sep 17 00:00:00 2001 From: Oleksandr Byelkin Date: Thu, 19 Sep 2024 16:51:05 +0200 Subject: [PATCH] MDEV-33373 part 1: Unexpected ER_FILE_NOT_FOUND upon reading from logging table after crash recovery We have found that my_errno can be "passed" to the next commad in some cases. It is practically impossible to check/fix all cases of my_errno in the server, plugins and engines so we will reset it as we reset other errors. The test case will be fixed by CSV engine fix so will be added with it (see part2). --- sql/sql_class.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sql/sql_class.h b/sql/sql_class.h index 08a04665383..93c5850ae3d 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -4176,6 +4176,7 @@ public: is_slave_error= 0; if (killed == KILL_BAD_DATA) reset_killed(); + my_errno= 0; DBUG_VOID_RETURN; }