[CP] revert co_stack fix
This commit is contained in:
18
deps/easy/src/io/easy_negotiation.c
vendored
18
deps/easy/src/io/easy_negotiation.c
vendored
@ -25,9 +25,9 @@ const uint64_t g_support_eio_maigc[] = {
|
||||
|
||||
const int g_support_eio_maigc_num = sizeof(g_support_eio_maigc) / sizeof(g_support_eio_maigc[0]);
|
||||
|
||||
static int easy_magic_in_support_list(uint64_t magic)
|
||||
{
|
||||
int ret = 0;
|
||||
static int easy_magic_in_support_list(uint64_t magic)
|
||||
{
|
||||
int ret = 0;
|
||||
int i = 0;
|
||||
for (i = 0; i < g_support_eio_maigc_num; i++) {
|
||||
if (magic == g_support_eio_maigc[i]) {
|
||||
@ -203,9 +203,9 @@ int net_send_negotiate_message(uint8_t negotiation_enable, int fd, uint64_t magi
|
||||
if (magic) {
|
||||
int send_bytes = 0;
|
||||
const int MAX_SEND_LEN = 20;
|
||||
char buf[MAX_SEND_LEN];
|
||||
memset(buf, 0, sizeof(buf));
|
||||
|
||||
char buf[MAX_SEND_LEN];
|
||||
memset(buf, 0, sizeof(buf));
|
||||
|
||||
ret = easy_encode_negotiation_msg(&ne_msg, buf, MAX_SEND_LEN, &encode_len);
|
||||
if (ret != EASY_OK) {
|
||||
easy_error_log("easy encode negotiation msg failed!ret:%d, fd:%d, addr: %s", ret, fd, addr_str);
|
||||
@ -237,9 +237,9 @@ int net_send_negotiate_message(uint8_t negotiation_enable, int fd, uint64_t magi
|
||||
|
||||
void net_consume_negotiation_msg(int fd, uint64_t magic)
|
||||
{
|
||||
int ret = EASY_OK;
|
||||
const int64_t recv_buf_len = 1 * 1024;
|
||||
int rcv_bytes = 0;
|
||||
int ret = EASY_OK;
|
||||
const int64_t recv_buf_len = 1 * 1024;
|
||||
int rcv_bytes = 0;
|
||||
int64_t decode_len = 0;
|
||||
easy_negotiation_msg_t ne_msg;
|
||||
char recv_buf[recv_buf_len];
|
||||
|
||||
4
deps/oblib/src/common/ob_smart_call.h
vendored
4
deps/oblib/src/common/ob_smart_call.h
vendored
@ -21,8 +21,8 @@ namespace oceanbase
|
||||
{
|
||||
namespace common
|
||||
{
|
||||
static constexpr int64_t ALL_STACK_LIMIT = 12L << 20;
|
||||
static constexpr int64_t STACK_PER_EXTEND = (4L << 20) - ACHUNK_PRESERVE_SIZE;
|
||||
static constexpr int64_t ALL_STACK_LIMIT = 10L << 20;
|
||||
static constexpr int64_t STACK_PER_EXTEND = (2L << 20) - ACHUNK_PRESERVE_SIZE;
|
||||
static constexpr int64_t STACK_RESERVED_SIZE = 128L << 10;
|
||||
RLOCAL_EXTERN(int64_t, all_stack_size);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user