[CP] openssl use 500 tenant DEFAULT_CTX_ID to alloc memory is not appropriate
This commit is contained in:
committed by
ob-robot
parent
2406eedc09
commit
8bae5f61df
@ -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)
|
static void* ob_malloc_openssl(size_t nbyte, const char *, int)
|
||||||
{
|
{
|
||||||
ObMemAttr attr;
|
ObMemAttr attr;
|
||||||
|
attr.ctx_id_ = ObCtxIds::GLIBC;
|
||||||
attr.label_ = ObModIds::OB_BUFFER;
|
attr.label_ = ObModIds::OB_BUFFER;
|
||||||
return ob_malloc(nbyte, attr);
|
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)
|
static void* ob_realloc_openssl(void *ptr, size_t nbyte, const char *, int)
|
||||||
{
|
{
|
||||||
ObMemAttr attr;
|
ObMemAttr attr;
|
||||||
|
attr.ctx_id_ = ObCtxIds::GLIBC;
|
||||||
attr.label_ = ObModIds::OB_BUFFER;
|
attr.label_ = ObModIds::OB_BUFFER;
|
||||||
return ob_realloc(ptr, nbyte, attr);
|
return ob_realloc(ptr, nbyte, attr);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user