Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
b3d8871c
Commit
b3d8871c
authored
Jan 18, 2010
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In DBUG_EXECUTE_IF, change abort() to DBUG_ABORT() to avoid popups on windows
parent
5ca186b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
sql/handler.cc
sql/handler.cc
+5
-5
sql/log.cc
sql/log.cc
+8
-8
No files found.
sql/handler.cc
View file @
b3d8871c
...
...
@@ -1151,7 +1151,7 @@ int ha_commit_trans(THD *thd, bool all)
uint
rw_ha_count
;
bool
rw_trans
;
DBUG_EXECUTE_IF
(
"crash_commit_before"
,
abort
(););
DBUG_EXECUTE_IF
(
"crash_commit_before"
,
DBUG_ABORT
(););
/* Close all cursors that can not survive COMMIT */
if
(
is_real_trans
)
/* not a statement commit */
...
...
@@ -1203,7 +1203,7 @@ int ha_commit_trans(THD *thd, bool all)
}
status_var_increment
(
thd
->
status_var
.
ha_prepare_count
);
}
DBUG_EXECUTE_IF
(
"crash_commit_after_prepare"
,
abort
(););
DBUG_EXECUTE_IF
(
"crash_commit_after_prepare"
,
DBUG_ABORT
(););
if
(
error
||
(
is_real_trans
&&
xid
&&
(
error
=
!
(
cookie
=
tc_log
->
log_xid
(
thd
,
xid
)))))
{
...
...
@@ -1211,13 +1211,13 @@ int ha_commit_trans(THD *thd, bool all)
error
=
1
;
goto
end
;
}
DBUG_EXECUTE_IF
(
"crash_commit_after_log"
,
abort
(););
DBUG_EXECUTE_IF
(
"crash_commit_after_log"
,
DBUG_ABORT
(););
}
error
=
ha_commit_one_phase
(
thd
,
all
)
?
(
cookie
?
2
:
1
)
:
0
;
DBUG_EXECUTE_IF
(
"crash_commit_before_unlog"
,
abort
(););
DBUG_EXECUTE_IF
(
"crash_commit_before_unlog"
,
DBUG_ABORT
(););
if
(
cookie
)
tc_log
->
unlog
(
cookie
,
xid
);
DBUG_EXECUTE_IF
(
"crash_commit_after"
,
abort
(););
DBUG_EXECUTE_IF
(
"crash_commit_after"
,
DBUG_ABORT
(););
RUN_HOOK
(
transaction
,
after_commit
,
(
thd
,
FALSE
));
end:
if
(
rw_trans
)
...
...
sql/log.cc
View file @
b3d8871c
...
...
@@ -2826,7 +2826,7 @@ bool MYSQL_BIN_LOG::open(const char *log_name,
sql_print_error
(
"MSYQL_BIN_LOG::open failed to sync the index file."
);
DBUG_RETURN
(
1
);
}
DBUG_EXECUTE_IF
(
"crash_create_non_critical_before_update_index"
,
abort
(););
DBUG_EXECUTE_IF
(
"crash_create_non_critical_before_update_index"
,
DBUG_ABORT
(););
#endif
write_error
=
0
;
...
...
@@ -2923,7 +2923,7 @@ bool MYSQL_BIN_LOG::open(const char *log_name,
if
(
write_file_name_to_index_file
)
{
#ifdef HAVE_REPLICATION
DBUG_EXECUTE_IF
(
"crash_create_critical_before_update_index"
,
abort
(););
DBUG_EXECUTE_IF
(
"crash_create_critical_before_update_index"
,
DBUG_ABORT
(););
#endif
DBUG_ASSERT
(
my_b_inited
(
&
index_file
)
!=
0
);
...
...
@@ -2942,7 +2942,7 @@ bool MYSQL_BIN_LOG::open(const char *log_name,
goto
err
;
#ifdef HAVE_REPLICATION
DBUG_EXECUTE_IF
(
"crash_create_after_update_index"
,
abort
(););
DBUG_EXECUTE_IF
(
"crash_create_after_update_index"
,
DBUG_ABORT
(););
#endif
}
}
...
...
@@ -3404,7 +3404,7 @@ int MYSQL_BIN_LOG::purge_first_log(Relay_log_info* rli, bool included)
/* Store where we are in the new file for the execution thread */
flush_relay_log_info
(
rli
);
DBUG_EXECUTE_IF
(
"crash_before_purge_logs"
,
abort
(););
DBUG_EXECUTE_IF
(
"crash_before_purge_logs"
,
DBUG_ABORT
(););
mysql_mutex_lock
(
&
rli
->
log_space_lock
);
rli
->
relay_log
.
purge_logs
(
to_purge_if_included
,
included
,
...
...
@@ -3547,7 +3547,7 @@ int MYSQL_BIN_LOG::purge_logs(const char *to_log,
goto
err
;
}
DBUG_EXECUTE_IF
(
"crash_purge_critical_after_update_index"
,
abort
(););
DBUG_EXECUTE_IF
(
"crash_purge_critical_after_update_index"
,
DBUG_ABORT
(););
err:
/* Read each entry from purge_index_file and delete the file. */
...
...
@@ -3557,7 +3557,7 @@ err:
" that would be purged."
);
close_purge_index_file
();
DBUG_EXECUTE_IF
(
"crash_purge_non_critical_after_update_index"
,
abort
(););
DBUG_EXECUTE_IF
(
"crash_purge_non_critical_after_update_index"
,
DBUG_ABORT
(););
if
(
need_mutex
)
mysql_mutex_unlock
(
&
LOCK_index
);
...
...
@@ -5101,7 +5101,7 @@ bool MYSQL_BIN_LOG::write(THD *thd, IO_CACHE *cache, Log_event *commit_event,
DBUG_PRINT
(
"info"
,
(
"error writing binlog cache: %d"
,
write_error
));
DBUG_PRINT
(
"info"
,
(
"crashing before writing xid"
));
abort
();
DBUG_ABORT
();
});
if
((
write_error
=
write_cache
(
cache
,
false
,
false
)))
...
...
@@ -5116,7 +5116,7 @@ bool MYSQL_BIN_LOG::write(THD *thd, IO_CACHE *cache, Log_event *commit_event,
bool
synced
=
0
;
if
(
flush_and_sync
(
&
synced
))
goto
err
;
DBUG_EXECUTE_IF
(
"half_binlogged_transaction"
,
abort
(););
DBUG_EXECUTE_IF
(
"half_binlogged_transaction"
,
DBUG_ABORT
(););
if
(
cache
->
error
)
// Error on read
{
sql_print_error
(
ER
(
ER_ERROR_ON_READ
),
cache
->
file_name
,
errno
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment