BUGFIX: fix tablelock compat problem

This commit is contained in:
obdev
2024-08-19 18:53:31 +00:00
committed by ob-robot
parent 0914824b40
commit ef59375e8a
2 changed files with 2 additions and 2 deletions

View File

@ -228,7 +228,7 @@ int ObTableLockOwnerID::deserialize(const char* buf, const int64_t data_len, int
{
int ret = OB_SUCCESS;
const int64_t origin_pos = pos;
int16_t magic_num = 0;
int64_t magic_num = 0;
if (OB_ISNULL(buf) || OB_UNLIKELY(data_len <= 0)) {
ret = OB_INVALID_ARGUMENT;
LOG_WARN("invalid args", KR(ret), KP(buf), K(data_len));

View File

@ -450,7 +450,7 @@ bool is_lock_owner_type_valid(const ObLockOwnerType &type)
class ObNewTableLockOwnerID
{
public:
static const int16_t MAGIC_NUM = -0xABC;
static const int64_t MAGIC_NUM = -0xABC;
};
class ObTableLockOwnerID