Commit 1d26537d authored by monty@hundin.mysql.fi's avatar monty@hundin.mysql.fi
Browse files

Query cache.

Remove some warnings
parent 8a861707
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -8528,6 +8528,14 @@ libc internal error: _rmutex_unlock: rmutex not held
Add @code{-mt} to @code{CFLAGS} and @code{CXXFLAGS} and try again.
If you are using the SFW version of gcc (which comes with Solaris 8),
you must add @file{/opt/sfw/lib} to the environment variable
@code{LD_LIBRARY_PATH} before running configure.
 
If you are using the gcc available from @code{sunfreeware.com}, you may
have many problems.  You should recompile gcc and GNU binutils on the
machine you will be running them from to avoid any problems.
If you get the following error when compiling MySQL with @code{gcc},
it means that your @code{gcc} is not configured for your version of Solaris:
+1 −1
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ extern const char *ft_precompiled_stopwords[];
extern ulong ft_min_word_len;
extern ulong ft_max_word_len;
extern ulong ft_max_word_len_for_sort;
extern char *ft_boolean_syntax;
extern const char *ft_boolean_syntax;

int ft_init_stopwords(const char **);
void ft_free_stopwords(void);
+2 −0
Original line number Diff line number Diff line
@@ -191,6 +191,8 @@ typedef struct st_columndef /* column information */
#endif
} MI_COLUMNDEF;

/* invalidator function reference for Query Cache */
typedef void (* invalidator_by_filename) (char * filename);

extern my_string myisam_log_filename;		/* Name of logfile */
extern uint myisam_block_size;
+1 −0
Original line number Diff line number Diff line
@@ -95,6 +95,7 @@ extern int myrg_lock_database(MYRG_INFO *file,int lock_type);
extern int myrg_create(const char *name, const char **table_names,
                       uint insert_method, my_bool fix_names);
extern int myrg_extra(MYRG_INFO *file,enum ha_extra_function function);
extern void myrg_extrafunc(MYRG_INFO *info,invalidator_by_filename inv);
extern ha_rows myrg_records_in_range(MYRG_INFO *info,int inx,
				    const byte *start_key,uint start_key_len,
				    enum ha_rkey_function start_search_flag,
+4 −0
Original line number Diff line number Diff line
@@ -78,6 +78,9 @@ enum enum_server_command {COM_SLEEP,COM_QUIT,COM_INIT_DB,COM_QUERY,
#define REFRESH_READ_LOCK	16384	/* Lock tables for read */
#define REFRESH_FAST		32768	/* Intern flag */

#define REFRESH_QUERY_CACHE	65536	/* flush query cache */
#define REFRESH_QUERY_CACHE_FREE 0x10000L /* pack query cache */

#define CLIENT_LONG_PASSWORD	1	/* new more secure passwords */
#define CLIENT_FOUND_ROWS	2	/* Found instead of affected rows */
#define CLIENT_LONG_FLAG	4	/* Get all column flags */
@@ -126,6 +129,7 @@ typedef struct st_net {
  unsigned char reading_or_writing;
  char save_char;
  my_bool no_send_ok;
  gptr query_cache_query;
} NET;

#define packet_error (~(unsigned long) 0)
Loading