Skip to content
Permalink
Browse files
row_undo(): Do not return an undefined value
Note: any error from row_undo() will lead to the server being
killed by InnoDB.
  • Loading branch information
dr-m committed Mar 14, 2019
1 parent ebd0eab commit e012d26
Showing 1 changed file with 3 additions and 2 deletions.
@@ -1,7 +1,7 @@
/*****************************************************************************
Copyright (c) 1997, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2017, MariaDB Corporation.
Copyright (c) 2017, 2019, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
@@ -440,8 +440,9 @@ row_undo(
case UNDO_UPDATE_TEMPORARY:
err = row_undo_mod(node, thr);
break;
case UNDO_NODE_FETCH_NEXT:
default:
ut_ad(!"wrong state");
err = DB_CORRUPTION;
}

if (locked_data_dict) {

0 comments on commit e012d26

Please sign in to comment.