[CP] fix serialized packet and return less data

This commit is contained in:
obdev
2022-11-18 06:35:51 +00:00
committed by wangzelin.wzl
parent 0a20f5ca46
commit c5cff66ebe
22 changed files with 350 additions and 82 deletions

View File

@ -2116,6 +2116,7 @@ enum ObWFRemoveMode
#define DIO_ALIGN_SIZE 4096
#define DIO_READ_ALIGN_SIZE 4096
#define DIO_ALLOCATOR_CACHE_BLOCK_SIZE (OB_DEFAULT_MACRO_BLOCK_SIZE + DIO_READ_ALIGN_SIZE)
#define CORO_INIT_PRIORITY 120
#define MALLOC_INIT_PRIORITY 128
#define NORMAL_INIT_PRIORITY (MALLOC_INIT_PRIORITY + 1)
@ -2265,22 +2266,22 @@ OB_INLINE int64_t ob_gettid()
return tid;
}
OB_INLINE uint64_t& ob_get_tenant_id()
OB_INLINE uint64_t &ob_get_tenant_id()
{
thread_local uint64_t tenant_id = 0;;
RLOCAL_INLINE(uint64_t, tenant_id);
return tenant_id;
}
OB_INLINE char* ob_get_tname()
OB_INLINE char *ob_get_tname()
{
thread_local char tname[oceanbase::OB_THREAD_NAME_BUF_LEN] = {0};
return tname;
}
OB_INLINE const char*& ob_get_origin_thread_name()
{
thread_local const char* tname = nullptr;
return tname;
struct TNameBuf {
TNameBuf() {
snprintf(v_, oceanbase::OB_THREAD_NAME_BUF_LEN, "%s", "");
}
char v_[oceanbase::OB_THREAD_NAME_BUF_LEN];
};
RLOCAL_INLINE(TNameBuf, tname);
return tname.v_;
}
#define GETTID() ob_gettid()