mirror of
https://github.com/MariaDB/server.git
synced 2026-05-10 09:04:29 +02:00
Clean up warnings and build problems on Windows. (Bug #11045)
VC++Files/sql/mysqld.dsp: Link debug server against debug yassl sql/examples/ha_archive.cc: Fix type for variables used to store number of rows Add cast when reading current position sql/examples/ha_archive.h: Fix variables used to store rows to ha_rows sql/ha_federated.cc: Remove unused variables, fix type of variable used to store query id sql/item_strfunc.cc: Remove unused variables sql/sql_acl.cc: Remove unused variables sql/sql_lex.cc: Add casts to fix type used for counting number of rows sql/sql_lex.h: Fix size of options to be ulong again sql/sql_insert.cc: Fix type of query id value sql/sql_union.cc: Cast value for number of rows to ha_rows sql/sql_yacc.yy: Remove unused variable sql/table.cc: Add casts for handling key_part lengths
This commit is contained in:
parent
0945dea8d0
commit
94d1d88658
12 changed files with 25 additions and 29 deletions
|
|
@ -259,7 +259,7 @@ error:
|
|||
This method reads the header of a meta file and returns whether or not it was successful.
|
||||
*rows will contain the current number of rows in the data file upon success.
|
||||
*/
|
||||
int ha_archive::read_meta_file(File meta_file, ulonglong *rows)
|
||||
int ha_archive::read_meta_file(File meta_file, ha_rows *rows)
|
||||
{
|
||||
uchar meta_buffer[META_BUFFER_SIZE];
|
||||
ulonglong check_point;
|
||||
|
|
@ -273,7 +273,7 @@ int ha_archive::read_meta_file(File meta_file, ulonglong *rows)
|
|||
/*
|
||||
Parse out the meta data, we ignore version at the moment
|
||||
*/
|
||||
*rows= uint8korr(meta_buffer + 2);
|
||||
*rows= (ha_rows)uint8korr(meta_buffer + 2);
|
||||
check_point= uint8korr(meta_buffer + 10);
|
||||
|
||||
DBUG_PRINT("ha_archive::read_meta_file", ("Check %d", (uint)meta_buffer[0]));
|
||||
|
|
@ -296,7 +296,7 @@ int ha_archive::read_meta_file(File meta_file, ulonglong *rows)
|
|||
By setting dirty you say whether or not the file represents the actual state of the data file.
|
||||
Upon ::open() we set to dirty, and upon ::close() we set to clean.
|
||||
*/
|
||||
int ha_archive::write_meta_file(File meta_file, ulonglong rows, bool dirty)
|
||||
int ha_archive::write_meta_file(File meta_file, ha_rows rows, bool dirty)
|
||||
{
|
||||
uchar meta_buffer[META_BUFFER_SIZE];
|
||||
ulonglong check_point= 0; //Reserved for the future
|
||||
|
|
@ -787,7 +787,7 @@ int ha_archive::rnd_pos(byte * buf, byte *pos)
|
|||
DBUG_ENTER("ha_archive::rnd_pos");
|
||||
statistic_increment(table->in_use->status_var.ha_read_rnd_next_count,
|
||||
&LOCK_status);
|
||||
current_position= my_get_ptr(pos, ref_length);
|
||||
current_position= (z_off_t)my_get_ptr(pos, ref_length);
|
||||
(void)gzseek(archive, current_position, SEEK_SET);
|
||||
|
||||
DBUG_RETURN(get_row(archive, buf));
|
||||
|
|
@ -801,7 +801,7 @@ int ha_archive::repair(THD* thd, HA_CHECK_OPT* check_opt)
|
|||
{
|
||||
int rc;
|
||||
byte *buf;
|
||||
ulonglong rows_recorded= 0;
|
||||
ha_rows rows_recorded= 0;
|
||||
gzFile rebuild_file; // Archive file we are working with
|
||||
File meta_file; // Meta file we use
|
||||
char data_file_name[FN_REFLEN];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue