Commit 6302357d authored by unknown's avatar unknown

cleanups


storage/maria/ma_commit.c:
  theoretically unneeded, and could cause problems (when trnman_commit_trn()
  ends the TRN may have been recycled and be in use by another thread
  already, we cannot touch it).
storage/maria/maria_def.h:
  just include the existing file
parent d78c7f0d
...@@ -67,7 +67,6 @@ int ma_commit(TRN *trn) ...@@ -67,7 +67,6 @@ int ma_commit(TRN *trn)
log_array, NULL) || log_array, NULL) ||
translog_flush(commit_lsn) || translog_flush(commit_lsn) ||
trnman_commit_trn(trn)); trnman_commit_trn(trn));
trn->undo_lsn= 0;
/* /*
Note: if trnman_commit_trn() fails above, we have already Note: if trnman_commit_trn() fails above, we have already
written the COMMIT record, so Checkpoint and Recovery will see the written the COMMIT record, so Checkpoint and Recovery will see the
......
...@@ -894,7 +894,7 @@ void _ma_restore_status(void *param); ...@@ -894,7 +894,7 @@ void _ma_restore_status(void *param);
void _ma_copy_status(void *to, void *from); void _ma_copy_status(void *to, void *from);
my_bool _ma_check_status(void *param); my_bool _ma_check_status(void *param);
void _ma_reset_status(MARIA_HA *maria); void _ma_reset_status(MARIA_HA *maria);
int ma_commit(struct st_transaction *trn); #include "ma_commit.h"
extern MARIA_HA *_ma_test_if_reopen(char *filename); extern MARIA_HA *_ma_test_if_reopen(char *filename);
my_bool _ma_check_table_is_closed(const char *name, const char *where); my_bool _ma_check_table_is_closed(const char *name, const char *where);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment