diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2018-09-10 15:40:11 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2018-09-10 15:40:11 +0300 |
commit | b02c722e7ad5c1de0697ff8beb085edeb486f594 (patch) | |
tree | d4d6fbb45dd083d6ad158225db5de8318c25e9ef /storage/innobase/include/fil0fil.h | |
parent | 8618c58cc0929686235a104681c5087a0bc686f6 (diff) | |
parent | 75f8e86f57f66b68e4a3b36188e24ba294764e25 (diff) | |
download | mariadb-git-b02c722e7ad5c1de0697ff8beb085edeb486f594.tar.gz |
MDEV-17158 TRUNCATE is not atomic after MDEV-13564
Diffstat (limited to 'storage/innobase/include/fil0fil.h')
-rw-r--r-- | storage/innobase/include/fil0fil.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/storage/innobase/include/fil0fil.h b/storage/innobase/include/fil0fil.h index 890684af67e..d0dc02e6208 100644 --- a/storage/innobase/include/fil0fil.h +++ b/storage/innobase/include/fil0fil.h @@ -218,9 +218,11 @@ struct fil_space_t { @param[in] name table name after renaming @param[in] path tablespace file name after renaming @param[in] log whether to write redo log + @param[in] replace whether to ignore the existence of path @return error code @retval DB_SUCCESS on success */ - dberr_t rename(const char* name, const char* path, bool log); + dberr_t rename(const char* name, const char* path, bool log, + bool replace = false); /** Note that the tablespace has been imported. Initially, purpose=FIL_TYPE_IMPORT so that no redo log is |