[FEAT MERGE] instant ddl commit

Co-authored-by: hiddenbomb <bwgui203@gmail.com>
Co-authored-by: Charles0429 <xiezhenjiang@gmail.com>
Co-authored-by: rolandqi <qikai456@126.com>
This commit is contained in:
simonjoylet
2023-01-28 20:34:20 +08:00
committed by ob-robot
parent 5dbb8ee1a2
commit 0f14606391
112 changed files with 2988 additions and 1757 deletions

View File

@ -137,7 +137,10 @@ int ObRowCacheKey::deep_copy(char *buf, const int64_t buf_len, ObIKVCacheKey *&k
bool ObRowCacheKey::is_valid() const
{
return OB_LIKELY(0 != tenant_id_ && tablet_id_.is_valid() && rowkey_size_ > 0
&& data_version_ > -1 && (ObITable::is_minor_sstable(table_type_) || ObITable::is_major_sstable(table_type_) || ObITable::is_meta_major_sstable(table_type_))
&& data_version_ > -1 && (ObITable::is_minor_sstable(table_type_)
|| ObITable::is_major_sstable(table_type_)
|| ObITable::is_ddl_sstable(table_type_)
|| ObITable::is_meta_major_sstable(table_type_))
&& rowkey_.is_valid());
}