From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id A249C2903F for ; Sat, 9 Mar 2019 12:00:08 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yTAV4kegtkVO for ; Sat, 9 Mar 2019 12:00:08 -0500 (EST) Received: from smtp32.i.mail.ru (smtp32.i.mail.ru [94.100.177.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 4350827ACA for ; Sat, 9 Mar 2019 12:00:08 -0500 (EST) From: Nikita Pettik Subject: [tarantool-patches] [PATCH 2/3] sql: remove sql_like_count global counter Date: Sat, 9 Mar 2019 20:00:01 +0300 Message-Id: In-Reply-To: References: In-Reply-To: References: Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: tarantool-patches@freelists.org Cc: v.shpilevoy@tarantool.org, Nikita Pettik We don't rely on this debug facility anymore, so let's remove it. --- src/box/sql/func.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/box/sql/func.c b/src/box/sql/func.c index a0df830f6..0c07f7e3c 100644 --- a/src/box/sql/func.c +++ b/src/box/sql/func.c @@ -800,14 +800,6 @@ sql_strlike_ci(const char *zPattern, const char *zStr, unsigned int esc) zStr + strlen(zStr), 1, esc); } -/** - * Count the number of times that the LIKE operator gets called. - * This is used for testing only. - */ -#ifdef SQL_TEST -int sql_like_count = 0; -#endif - /** * Implementation of the like() SQL function. This function * implements the built-in LIKE operator. The first argument to @@ -828,9 +820,6 @@ likeFunc(sql_context *context, int argc, sql_value **argv) if (sql_value_type(argv[0]) == SQL_BLOB || sql_value_type(argv[1]) == SQL_BLOB) { -#ifdef SQL_TEST - sql_like_count++; -#endif sql_result_int(context, 0); return; } @@ -874,9 +863,6 @@ likeFunc(sql_context *context, int argc, sql_value **argv) } if (!zA || !zB) return; -#ifdef SQL_TEST - sql_like_count++; -#endif int res; res = sql_utf8_pattern_compare(zB, zA, zB_end, zA_end, is_like_ci, escape); -- 2.15.1