[CP] openssl use 500 tenant DEFAULT_CTX_ID to alloc memory is not appropriate

This commit is contained in:
496148326@qq.com
2023-11-16 05:40:21 +00:00
committed by ob-robot
parent 2406eedc09
commit 8bae5f61df

View File

@ -358,6 +358,7 @@ int ObBlockCipher::decrypt(const char *key, const int64_t key_len,
static void* ob_malloc_openssl(size_t nbyte, const char *, int)
{
ObMemAttr attr;
attr.ctx_id_ = ObCtxIds::GLIBC;
attr.label_ = ObModIds::OB_BUFFER;
return ob_malloc(nbyte, attr);
}
@ -365,6 +366,7 @@ static void* ob_malloc_openssl(size_t nbyte, const char *, int)
static void* ob_realloc_openssl(void *ptr, size_t nbyte, const char *, int)
{
ObMemAttr attr;
attr.ctx_id_ = ObCtxIds::GLIBC;
attr.label_ = ObModIds::OB_BUFFER;
return ob_realloc(ptr, nbyte, attr);
}