From 8d85b09b728f8359c50299c66df9f44bbed2ce59 Mon Sep 17 00:00:00 2001 From: Guy Lichtman Date: Sat, 12 Jan 2013 18:04:38 +0200 Subject: [PATCH] Treat Quit command as an empty object set. Issue #26. --- src/audit_plugin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audit_plugin.cc b/src/audit_plugin.cc index 1561d94..4caa85a 100755 --- a/src/audit_plugin.cc +++ b/src/audit_plugin.cc @@ -645,7 +645,7 @@ static void audit(ThdSesData *pThdData) LEX *pLex = Audit_formatter::thd_lex(pThdData->getTHD()); TABLE_LIST * table = pLex->query_tables; int matched = 0; - if(!table) //empty list of objects + if(strcmp(pThdData->getCmdName(),"Quit") == 0 || !table) //empty list of objects { matched = record_empty_objs_set; }