diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index ac00b21c837..e415b275fff 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -5428,7 +5428,9 @@ end_with_restore_list: (longlong) thd->thread_id); goto error; } - my_ok(thd); + /* MyRocks: hton->start_consistent_snapshot call may fail with an error */ + if (!thd->is_error()) + my_ok(thd); break; case SQLCOM_COMMIT: {