summaryrefslogtreecommitdiff
path: root/sql/protocol.h
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2015-08-11 11:18:38 +0400
committerSergey Vojtovich <svoj@mariadb.org>2015-08-21 10:40:39 +0400
commit31e365efae28ba3208e80511c4d18fe11a79541a (patch)
treef249682cc42490fc86382f5244a051001dc13c9e /sql/protocol.h
parent4374da63f03abc472f68f42e4e93261a18bfe417 (diff)
downloadmariadb-git-31e365efae28ba3208e80511c4d18fe11a79541a.tar.gz
MDEV-8010 - Avoid sql_alloc() in Items (Patch #1)
Added mandatory thd parameter to Item (and all derivative classes) constructor. Added thd parameter to all routines that may create items. Also removed "current_thd" from Item::Item. This reduced number of pthread_getspecific() calls from 290 to 177 per OLTP RO transaction.
Diffstat (limited to 'sql/protocol.h')
-rw-r--r--sql/protocol.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/protocol.h b/sql/protocol.h
index 048db940804..329bb0f9c46 100644
--- a/sql/protocol.h
+++ b/sql/protocol.h
@@ -139,6 +139,10 @@ public:
virtual enum enum_protocol_type type()= 0;
void end_statement();
+
+ friend int send_answer_1(Protocol *protocol, String *s1, String *s2,
+ String *s3);
+ friend int send_header_2(Protocol *protocol, bool for_category);
};