Forbid count/sum distinct in reporting wf to be calculated parallelly
This commit is contained in:
18
deps/easy/src/io/easy_negotiation.c
vendored
18
deps/easy/src/io/easy_negotiation.c
vendored
@ -40,9 +40,9 @@ static int easy_magic_in_support_list(uint64_t magic)
|
||||
|
||||
|
||||
extern char *easy_connection_str(easy_connection_t *c);
|
||||
|
||||
static int easy_encode_uint64(char *buf, const uint64_t buf_len, int64_t *pos, uint64_t val)
|
||||
{
|
||||
|
||||
static int easy_encode_uint64(char *buf, const uint64_t buf_len, int64_t *pos, uint64_t val)
|
||||
{
|
||||
int ret = ((NULL != buf) &&
|
||||
((buf_len - *pos) >= (uint64_t)(sizeof(val)))) ? EASY_OK : EASY_ABORT;
|
||||
|
||||
@ -188,9 +188,9 @@ int net_send_negotiate_message(uint8_t negotiation_enable, int fd, uint64_t magi
|
||||
{
|
||||
int ret = EASY_OK;
|
||||
int64_t encode_len = 0;
|
||||
easy_negotiation_msg_t ne_msg;
|
||||
memset(&ne_msg, 0, sizeof(ne_msg));
|
||||
|
||||
easy_negotiation_msg_t ne_msg;
|
||||
memset(&ne_msg, 0, sizeof(ne_msg));
|
||||
|
||||
ne_msg.msg_header.header_magic = EASY_NEGOTIATION_PACKET_HEADER_MAGIC;
|
||||
ne_msg.msg_header.msg_body_len = sizeof(easy_negotiation_msg_body_t);
|
||||
ne_msg.msg_body.eio_magic = magic;
|
||||
@ -252,9 +252,9 @@ void net_consume_negotiation_msg(int fd, uint64_t magic)
|
||||
if (rcv_bytes <= 0) {
|
||||
easy_info_log("no data to read, fd:%d, errno:%d", fd, errno);
|
||||
return;
|
||||
} else {
|
||||
easy_info_log("easy_consume_negotiation_msg, read %d bytes msg!", rcv_bytes);
|
||||
|
||||
} else {
|
||||
easy_info_log("easy_consume_negotiation_msg, read %d bytes msg!", rcv_bytes);
|
||||
|
||||
ret = easy_decode_negotiation_msg(&ne_msg, recv_buf, rcv_bytes, &decode_len);
|
||||
if (ret != EASY_OK) {
|
||||
easy_error_log("easy decode negotiation msg failed!ret:%d", ret);
|
||||
|
||||
Reference in New Issue
Block a user