提交 345618f8 编写于 作者: F fuxiang 提交者: mergify[bot]

fix(tianmu): fix replace into error on multi field pk, code format(#1152).

上级 e62a1421
......@@ -1717,8 +1717,7 @@ bool ha_tianmu::commit_inplace_alter_table([[maybe_unused]] TABLE *altered_table
key: mysql format, may be union key, need changed to kvstore key format
*/
void ha_tianmu::key_convert(const uchar *key, uint key_len, std::vector<uint> cols,
std::vector<std::string> &keys) {
void ha_tianmu::key_convert(const uchar *key, uint key_len, std::vector<uint> cols, std::vector<std::string> &keys) {
key_restore(table->record[0], (uchar *)key, &table->key_info[active_index], key_len);
Field **field = table->field;
......
......@@ -166,8 +166,7 @@ common::ErrorCode TianmuTableIndex::CheckUniqueness(core::Transaction *tx, const
return common::ErrorCode::SUCCESS;
}
common::ErrorCode TianmuTableIndex::InsertIndex(core::Transaction *tx, std::vector<std::string> &fields,
uint64_t row) {
common::ErrorCode TianmuTableIndex::InsertIndex(core::Transaction *tx, std::vector<std::string> &fields, uint64_t row) {
StringWriter value, key;
rocksdb_key_->pack_key(key, fields, value);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册