[BUG] add log to detect btree bug

This commit is contained in:
Handora
2023-01-28 17:35:09 +08:00
committed by ob-robot
parent 6de53975ce
commit 9a589fc782

View File

@ -690,8 +690,10 @@ int WriteHandle::insert_and_split_upward(BtreeKey key, BtreeVal &val, BtreeNode
}
} else if (this->path_.get_is_found()) {
ret = OB_ENTRY_EXIST;
BtreeVal old_val = val;
val = old_node->get_val(pos, index);
OB_LOG(ERROR, "duplicate key", K(old_node->get_key(pos, index)), K(key), K(old_node->get_val(pos, index)), K(val));
OB_LOG(ERROR, "duplicate key", K(old_node->get_key(pos, index)), K(key), K(old_node->get_val(pos, index)), K(val), K(old_val));
ob_abort();
} else {
ret = insert_into_node(old_node, pos, key, val, new_node_1, new_node_2);
}