From e5377457d80ddd7ffe7c358c88b7e9985d45b972 Mon Sep 17 00:00:00 2001 From: Oleksandr Byelkin Date: Thu, 26 Nov 2015 11:21:56 +0100 Subject: MDEV-9058: protocol: COM_MULTI command (part 1) Adding a command from the end of avaliable commands numering space (254) --- storage/perfschema/pfs.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'storage/perfschema/pfs.cc') diff --git a/storage/perfschema/pfs.cc b/storage/perfschema/pfs.cc index dd61df5f861..dbe3241cfe8 100644 --- a/storage/perfschema/pfs.cc +++ b/storage/perfschema/pfs.cc @@ -1444,7 +1444,9 @@ static void register_statement_v1(const char *category, for (; count>0; count--, info++) { - DBUG_ASSERT(info->m_name != NULL); + if (info->m_name == NULL) + continue; + len= strlen(info->m_name); full_length= prefix_length + len; if (likely(full_length <= PFS_MAX_INFO_NAME_LENGTH)) -- cgit v1.2.1