fix tenant_data_version & need_create_empty_major compatible.

This commit is contained in:
obdev
2024-02-10 02:56:08 +00:00
committed by ob-robot
parent c2c0671855
commit 85a1f1a507
20 changed files with 154 additions and 110 deletions

View File

@ -1620,9 +1620,7 @@ int ObCreateTabletSchema::serialize(char *buf, const int64_t buf_len, int64_t &p
LST_DO_CODE(OB_UNIS_ENCODE,
table_id_,
index_status_,
truncate_version_,
tenant_data_version_,
need_create_empty_major_);
truncate_version_);
return ret;
}
@ -1635,9 +1633,7 @@ int ObCreateTabletSchema::deserialize(common::ObIAllocator &allocator, const cha
LST_DO_CODE(OB_UNIS_DECODE,
table_id_,
index_status_,
truncate_version_,
tenant_data_version_,
need_create_empty_major_);
truncate_version_);
}
return ret;
}
@ -1648,9 +1644,7 @@ int64_t ObCreateTabletSchema::get_serialize_size() const
LST_DO_CODE(OB_UNIS_ADD_LEN,
table_id_,
index_status_,
truncate_version_,
tenant_data_version_,
need_create_empty_major_);
truncate_version_);
return len;
}
@ -1659,9 +1653,7 @@ int ObCreateTabletSchema::init(
const share::schema::ObTableSchema &input_schema,
const lib::Worker::CompatMode compat_mode,
const bool skip_column_info,
const int64_t compat_version,
const uint64_t tenant_data_version,
const bool need_create_empty_major)
const int64_t compat_version)
{
int ret = OB_SUCCESS;
if (OB_FAIL(ObStorageSchema::init(allocator, input_schema, compat_mode, skip_column_info, compat_version))) {
@ -1670,8 +1662,6 @@ int ObCreateTabletSchema::init(
table_id_ = input_schema.get_table_id();
index_status_ = input_schema.get_index_status();
truncate_version_ = input_schema.get_truncate_version();
tenant_data_version_ = tenant_data_version;
need_create_empty_major_ = need_create_empty_major;
}
return ret;
}
@ -1687,8 +1677,6 @@ int ObCreateTabletSchema::init(
table_id_ = old_schema.get_table_id();
index_status_ = old_schema.get_index_status();
truncate_version_ = old_schema.get_truncate_version();
tenant_data_version_ = old_schema.get_tenant_data_version();
need_create_empty_major_ = old_schema.get_need_create_empty_major();
}
return ret;
}