Fix estimate row count of data inserted by current trx

This commit is contained in:
haitaoyang
2023-05-10 13:28:12 +00:00
committed by ob-robot
parent e23cc9ead4
commit cb1af1dc53
13 changed files with 45 additions and 19 deletions

View File

@ -6595,7 +6595,7 @@ public:
struct ObEstPartArgElement
{
ObEstPartArgElement() : batch_(), scan_flag_(),
index_id_(common::OB_INVALID_ID), range_columns_count_(0), tablet_id_(), ls_id_(), tenant_id_(0)
index_id_(common::OB_INVALID_ID), range_columns_count_(0), tablet_id_(), ls_id_(), tenant_id_(0), tx_id_()
{}
// Essentially, we can use ObIArray<ObNewRange> here
// For compatibility reason, we still use ObSimpleBatch
@ -6606,6 +6606,7 @@ struct ObEstPartArgElement
ObTabletID tablet_id_;
share::ObLSID ls_id_;
uint64_t tenant_id_;
transaction::ObTransID tx_id_;
TO_STRING_KV(
K(scan_flag_),
@ -6614,7 +6615,8 @@ struct ObEstPartArgElement
K(range_columns_count_),
K(tablet_id_),
K(ls_id_),
K(tenant_id_));
K(tenant_id_),
K(tx_id_));
int64_t get_serialize_size(void) const;
int serialize(char *buf, const int64_t buf_len, int64_t &pos) const;
int deserialize(common::ObIAllocator &allocator,