diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2020-03-03 22:15:44 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2020-03-03 22:25:20 +0200 |
commit | 37e7bde12abddcda4d5505450e39a739561bd4d5 (patch) | |
tree | e7c236289d9a662947557131729c623f640489fe /storage/innobase/include/dyn0buf.h | |
parent | 1ef10744abfac64583c793080ef678ac2575a5b1 (diff) | |
download | mariadb-git-37e7bde12abddcda4d5505450e39a739561bd4d5.tar.gz |
MDEV-14425 preparation: Remove log_t::append_on_checkpoint
Simplify the logging of ALTER TABLE operations, by making use of the
TRX_UNDO_RENAME_TABLE undo log record that was introduced in
commit 0bc36758ba08ddeea6f7896a0fb815a13a48895a.
commit_try_rebuild(): Invoke row_rename_table_for_mysql() and
actually rename the files before committing the transaction.
fil_mtr_rename_log(), commit_cache_rebuild(),
log_append_on_checkpoint(), row_merge_rename_tables_dict(): Remove.
mtr_buf_copy_t, log_t::append_on_checkpoint: Remove.
row_rename_table_for_mysql(): If !use_fk, ignore missing foreign
keys. Remove a call to dict_table_rename_in_cache(), because
trx_rollback_to_savepoint() should invoke the function if needed.
Diffstat (limited to 'storage/innobase/include/dyn0buf.h')
-rw-r--r-- | storage/innobase/include/dyn0buf.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/storage/innobase/include/dyn0buf.h b/storage/innobase/include/dyn0buf.h index b15d35c4831..ffe9b5d21dc 100644 --- a/storage/innobase/include/dyn0buf.h +++ b/storage/innobase/include/dyn0buf.h @@ -475,20 +475,4 @@ private: block_t m_first_block; }; -/** mtr_buf_t copier */ -struct mtr_buf_copy_t { - /** The copied buffer */ - mtr_buf_t m_buf; - - /** Append a block to the redo log buffer. - @return whether the appending should continue (always true here) */ - bool operator()(const mtr_buf_t::block_t* block) - { - byte* buf = m_buf.open(block->used()); - memcpy(buf, block->begin(), block->used()); - m_buf.close(buf + block->used()); - return(true); - } -}; - #endif /* dyn0buf_h */ |