[FEAT MERGE] OLTP performance and cpu reduction optimization under tiny specification

Co-authored-by: hezuojiao <hezuojiao@gmail.com>
This commit is contained in:
obdev
2023-04-26 15:30:17 +00:00
committed by ob-robot
parent 8ad13af591
commit 8fb50cdf65
179 changed files with 3131 additions and 1425 deletions

View File

@ -132,16 +132,14 @@ struct ObEncryptMeta
int replace_tenant_id(const uint64_t real_tenant_id);
bool is_valid_before_decrypt_table_key() const
{
return OB_INVALID_ID != tenant_id_
&& encrypt_algorithm_ > 0
return encrypt_algorithm_ > 0
&& master_key_version_ > 0
&& random_.size() > 0
&& encrypted_table_key_.size() > 0;
}
bool is_valid() const
{
return OB_INVALID_ID != tenant_id_
&& encrypt_algorithm_ > 0
return encrypt_algorithm_ > 0
&& master_key_version_ > 0
&& random_.size() > 0
&& master_key_.size() > 0