MDEV-38374 nonsense code in wsrep_store_key_val_for_row()

fix copy-paste error. See the code for MYSQL_TYPE_VARCHAR
This commit is contained in:
Sergei Golubchik 2025-12-18 16:14:26 +01:00
commit 2dcd3cefe1
3 changed files with 32 additions and 1 deletions

View file

@ -6918,12 +6918,12 @@ wsrep_store_key_val_for_row(
wsrep_thd_query(thd));
true_len = buff_space;
}
memcpy(buff, sorted, true_len);
buff += true_len;
buff_space -= true_len;
} else {
buff += key_len;
}
memcpy(buff, sorted, true_len);
} else {
/* Here we handle all other data types except the
true VARCHAR, BLOB and TEXT. Note that the column