1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-10-31 18:30:33 +03:00

fix(plugin): MCOL-6029 use the right field from the rows_stats struct for inserts

This commit is contained in:
Aleksei Antipovskii
2025-09-18 18:13:58 +02:00
committed by Leonid Fedorov
parent e8b9adda8f
commit 5ffc688c26
4 changed files with 15 additions and 10 deletions

View File

@@ -2891,7 +2891,7 @@ int ha_mcs_impl_delete_table(const char* name)
int rc = ha_mcs_impl_delete_table_(dbName, name, *ci);
return rc;
}
int ha_mcs_impl_write_row(const uchar* buf, TABLE* table, uint64_t rows_changed, long timeZone)
int ha_mcs_impl_write_row(const uchar* buf, TABLE* table, uint64_t rows_inserted, long timeZone)
{
THD* thd = current_thd;
@@ -2921,7 +2921,7 @@ int ha_mcs_impl_write_row(const uchar* buf, TABLE* table, uint64_t rows_changed,
// At the beginning of insert, make sure there are no
// left-over values from a previously possibly failed insert.
if (rows_changed == 0)
if (rows_inserted == 0)
ci->tableValuesMap.clear();
if (ci->alterTableState > 0)