Skip to content

Commit 3e83a7b

Browse files
Andrzej Religadahlerlend
authored andcommitted
WL#15440 MySQL REST Service (MRS) - Umbrella WL
Post-push fix: adding a proper synchronization to db_object/modify_fields.inc When the fields definitions are modified using this script the intention is that this is an atomic change. There are several SQL statements there so they should be wrapped inside a transaction so that MRS did not see a partial change which leads to a random test failures. Change-Id: I1313a2607060836c6c342354c5be699b25722973
1 parent 9aa9fc9 commit 3e83a7b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mysql-test/suite/router/include/mrs/db_object/modify_fields.inc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ if (!$mrs_modify_fields)
2121
let $_columns=$mrs_modify_columns;
2222
let $_fileds=$mrs_modify_fields;
2323

24+
START TRANSACTION;
25+
2426
while($_columns)
2527
{
2628

@@ -41,6 +43,8 @@ while($_columns)
4143
WHERE db_column->>"\$.name"="$_column_element";
4244
}
4345

46+
COMMIT;
47+
4448
--enable_query_log
4549
--enable_result_log
4650

0 commit comments

Comments
 (0)