diff options
author | unknown <reggie@big_geek.> | 2006-03-04 14:21:27 -0600 |
---|---|---|
committer | unknown <reggie@big_geek.> | 2006-03-04 14:21:27 -0600 |
commit | 5f7059219f0ef91854943fdeee51fb89dad18aee (patch) | |
tree | 0f3dde200f87f26339e4c7a573f620af8ceb5061 /sql/ha_partition.h | |
parent | 405177f1cd08fb3514f14ccaaa94b05d188ec76e (diff) | |
download | mariadb-git-5f7059219f0ef91854943fdeee51fb89dad18aee.tar.gz |
Bug #17720 Partition ALTER TABLE fails on rename of .MYI file
Fix this by passing the HA_EXTRA_PREPARE_FOR_DELETE onto the newly added or about to be dropped partitions
so they have an opportunity to close their OS file handle.
client/mysqltest.c:
prevent positive find of pattern when pattern has zero length (this has nothing to do with this bug fix)
sql/ha_partition.cc:
initialize m_new_file to NULL
call new function prepare_for_delete for the HA_EXTRA_PREPARE_FOR_DELETE operation
inside prepare_for_delete, loop over m_new_file and m_reorged_file if they are non-NULL
sql/ha_partition.h:
added decl for new prepare_for_delete function
Diffstat (limited to 'sql/ha_partition.h')
-rw-r--r-- | sql/ha_partition.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/ha_partition.h b/sql/ha_partition.h index 40306ba7da8..f828cc65ed3 100644 --- a/sql/ha_partition.h +++ b/sql/ha_partition.h @@ -197,6 +197,7 @@ public: DBUG_RETURN(0); } private: + int prepare_for_delete(); int copy_partitions(ulonglong *copied, ulonglong *deleted); void cleanup_new_partition(uint part_count); int prepare_new_partition(TABLE *table, HA_CREATE_INFO *create_info, |