[Commits] Rev 3397: Fix compile failure when built without query cache: define in file:///home/psergey/dev2/5.3-look50/

Sergey Petrunya psergey at askmonty.org
Thu Jan 26 12:20:35 EET 2012


At file:///home/psergey/dev2/5.3-look50/

------------------------------------------------------------
revno: 3397
revision-id: psergey at askmonty.org-20120126102034-tp33uzyuqnyk30mn
parent: psergey at askmonty.org-20120126082202-3hvtibjm5s8493ni
committer: Sergey Petrunya <psergey at askmonty.org>
branch nick: 5.3-look50
timestamp: Thu 2012-01-26 14:20:34 +0400
message:
  Fix compile failure when built without query cache: define 
  QUERY_CACHE_DB_LENGTH_SIZE 0, just like it is done with
  QUERY_CACHE_FLAGS_SIZE.
=== modified file 'sql/mysql_priv.h'
--- a/sql/mysql_priv.h	2011-12-15 08:21:15 +0000
+++ b/sql/mysql_priv.h	2012-01-26 10:20:34 +0000
@@ -1068,6 +1068,7 @@
   (((L)->sql_command == SQLCOM_SELECT) && (L)->safe_to_cache_query)
 #else
 #define QUERY_CACHE_FLAGS_SIZE 0
+#define QUERY_CACHE_DB_LENGTH_SIZE 0
 #define query_cache_store_query(A, B)     do { } while(0)
 #define query_cache_destroy()             do { } while(0)
 #define query_cache_result_size_limit(A)  do { } while(0)



More information about the commits mailing list