Commit fc1fd8f4 authored by bell@sanja.is.com.ua's avatar bell@sanja.is.com.ua
Browse files

query cache code can be excluded from server

parent e534922b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ path=`dirname $0`
extra_flags="$pentium_cflags $debug_cflags"
c_warnings="$c_warnings $debug_extra_warnings"
cxx_warnings="$cxx_warnings $debug_extra_warnings"
extra_configs="$pentium_configs $debug_configs $static_link"
extra_configs="$pentium_configs $debug_configs $static_link --without-query-cache"

extra_configs="$extra_configs "

+4 −0
Original line number Diff line number Diff line
@@ -36325,6 +36325,8 @@ Following are some performance data for the query cache
@item
If you want to disable the query cache code set @code{query_cache_size=0}.
By disabling the query cache code there is no noticeable overhead.
(query cache can be excluded from code with help of configure option
@code{--without-query-cache}) 
@item
If all of the queries you're preforming are simple (such as selecting a
row from a table with one row); but still differ so that the queries can
@@ -48918,6 +48920,8 @@ Our TODO section contains what we plan to have in 4.0. @xref{TODO MySQL 4.0}.
@itemize @bullet
@item
New configure option --without-query-cache. 
@item
Memory allocation strategy for 'root memory' changed. Block size now grows 
with number of allocated blocks.
@item
+1 −1
Original line number Diff line number Diff line
@@ -1823,7 +1823,7 @@ AC_ARG_WITH(embedded-server,
)

AC_ARG_WITH(query_cache,
    [  --without-query-cache  Don not build query cache in embedded server.],
    [  --without-query-cache   Do not build query cache.],
    [with_query_cache=$withval],
    [with_query_cache=yes]
)
+0 −8
Original line number Diff line number Diff line
@@ -1023,12 +1023,4 @@ typedef union {
#define C_MODE_END
#endif

/* 
   Now if query is taken off then tests with query cache fails
   SANJA TODO: remove this when problem with mysql-test will be solved
*/
#if defined(MYSQL_SERVER) && !defined(HAVE_QUERY_CACHE)
#define HAVE_QUERY_CACHE
#endif

#endif /* _global_h */
+1 −0
Original line number Diff line number Diff line
-- source include/have_innodb.inc
-- source include/have_query_cache.inc

#
# Without auto_commit.
Loading