From e44e3f6b25e9880cd32bc3591ff9b780a39fe6df Mon Sep 17 00:00:00 2001 From: Georg Richter Date: Fri, 2 May 2025 07:44:47 +0200 Subject: [PATCH] CONC-771: Fix pipelining mode (mariadb_stmt_execute_direct) If we are in pipeline mode (mariadb_stmt_execute_direct) we don't need to return an error, if there is no or no more data available: If the size of the buffer is a multiple of 8192 packets might be already written and the buffer was resetted afterwards. --- libmariadb/mariadb_lib.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/libmariadb/mariadb_lib.c b/libmariadb/mariadb_lib.c index cd9e646a..29157c98 100644 --- a/libmariadb/mariadb_lib.c +++ b/libmariadb/mariadb_lib.c @@ -494,13 +494,6 @@ int ma_multi_command(MYSQL *mysql, enum enum_multi_status status) return 0; case COM_MULTI_END: { - size_t len= net->write_pos - net->buff - NET_HEADER_SIZE; - - if (len < NET_HEADER_SIZE) /* don't send empty request */ - { - ma_net_clear(net); - return 1; - } net->extension->multi_status= COM_MULTI_OFF; return ma_net_flush(net); }