!6066 修复enable_security_policy=off时删除标签,系统表中数据未按预期更新问题

Merge pull request !6066 from 蒋宏博/6.0.0
This commit is contained in:
opengauss_bot
2024-08-16 09:38:24 +00:00
committed by Gitee

View File

@ -80,6 +80,13 @@ bool GsPolicyLabel::operator < (const GsPolicyLabel& arg) const
if (res > 0) {
return false;
}
/* if data value is equal, compare by object oid */
if (m_data_value_fqdn.m_value_object < arg.m_data_value_fqdn.m_value_object) {
return true;
}
if (m_data_value_fqdn.m_value_object > arg.m_data_value_fqdn.m_value_object) {
return false;
}
/* if data value is equal, compare by data type */
return (strcasecmp(m_data_type.c_str(), arg.m_data_type.c_str()) < 0);
}