diff options
author | unknown <mikael/pappa@dator5.(none)> | 2006-09-19 07:44:18 -0400 |
---|---|---|
committer | unknown <mikael/pappa@dator5.(none)> | 2006-09-19 07:44:18 -0400 |
commit | 0812a1f02e32cf77b0d48c0ec27e75719835d49a (patch) | |
tree | f65a68909a68d8487c02ce45c84183b79733ecd0 /sql/ha_partition.cc | |
parent | 86b4ca8480f3e0fea1720e4a84d4bf42294e46ce (diff) | |
parent | 24f9f35eb62f82130bf3463550b74100e93bf5f7 (diff) | |
download | mariadb-git-0812a1f02e32cf77b0d48c0ec27e75719835d49a.tar.gz |
Merge dator5.(none):/home/pappa/clean-mysql-5.1
into dator5.(none):/home/pappa/bug21210
mysql-test/r/partition.result:
Auto merged
mysql-test/t/partition.test:
Auto merged
sql/ha_partition.cc:
Auto merged
Diffstat (limited to 'sql/ha_partition.cc')
-rw-r--r-- | sql/ha_partition.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc index e435b356def..0086c728b42 100644 --- a/sql/ha_partition.cc +++ b/sql/ha_partition.cc @@ -1364,6 +1364,7 @@ int ha_partition::change_partitions(HA_CREATE_INFO *create_info, i= 0; part_count= 0; orig_count= 0; + first= TRUE; part_it.rewind(); do { @@ -1391,9 +1392,16 @@ int ha_partition::change_partitions(HA_CREATE_INFO *create_info, DBUG_RETURN(ER_OUTOFMEMORY); } } while (++j < no_subparts); + if (part_elem->part_state == PART_CHANGED) + orig_count+= no_subparts; + else if (temp_partitions && first) + { + orig_count+= (no_subparts * temp_partitions); + first= FALSE; + } } } while (++i < no_parts); - + first= FALSE; /* Step 5: Create the new partitions and also open, lock and call external_lock |