mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge
sql/ha_heap.cc: Auto merged sql/item_subselect.cc: Auto merged sql/sql_acl.cc: Auto merged sql/sql_insert.cc: Auto merged sql/sql_parse.cc: Auto merged sql/examples/ha_archive.cc: Auto merged sql/examples/ha_example.cc: Auto merged sql/examples/ha_tina.cc: Auto merged sql/sql_select.cc: Auto merged sql/sql_repl.cc: SCCS merged
This commit is contained in:
@ -577,7 +577,7 @@ int ha_archive::write_row(byte * buf)
|
||||
written= gzwrite(share->archive_write, buf, table->reclength);
|
||||
DBUG_PRINT("ha_archive::get_row", ("Wrote %d bytes expected %d", written, table->reclength));
|
||||
share->dirty= TRUE;
|
||||
if (written != table->reclength)
|
||||
if (written != (z_off_t)table->reclength)
|
||||
goto error;
|
||||
/*
|
||||
We should probably mark the table as damagaged if the record is written
|
||||
@ -592,7 +592,7 @@ int ha_archive::write_row(byte * buf)
|
||||
{
|
||||
(*field)->get_ptr(&ptr);
|
||||
written= gzwrite(share->archive_write, ptr, (unsigned)size);
|
||||
if (written != size)
|
||||
if (written != (z_off_t)size)
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
@ -615,7 +615,6 @@ error:
|
||||
int ha_archive::rnd_init(bool scan)
|
||||
{
|
||||
DBUG_ENTER("ha_archive::rnd_init");
|
||||
int read; // gzread() returns int, and we use this to check the header
|
||||
|
||||
/* We rewind the file so that we can read from the beginning if scan */
|
||||
if (scan)
|
||||
@ -749,7 +748,7 @@ int ha_archive::rnd_pos(byte * buf, byte *pos)
|
||||
DBUG_ENTER("ha_archive::rnd_pos");
|
||||
statistic_increment(ha_read_rnd_count,&LOCK_status);
|
||||
current_position= ha_get_ptr(pos, ref_length);
|
||||
z_off_t seek= gzseek(archive, current_position, SEEK_SET);
|
||||
(void)gzseek(archive, current_position, SEEK_SET);
|
||||
|
||||
DBUG_RETURN(get_row(archive, buf));
|
||||
}
|
||||
|
Reference in New Issue
Block a user