mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 15:45:33 +02:00
Solved bug 8691.
Funny sometimes how things work when in reality you would think it would crash pretty hard :) sql/examples/ha_archive.cc: Solves bug #8691. This was reported in an internal build. Renamed ptr to bptr.
This commit is contained in:
parent
e874576159
commit
48f0b2774d
1 changed files with 6 additions and 6 deletions
|
|
@ -575,7 +575,7 @@ error:
|
|||
int ha_archive::write_row(byte * buf)
|
||||
{
|
||||
z_off_t written;
|
||||
uint *ptr, *end;
|
||||
uint *bptr, *end;
|
||||
DBUG_ENTER("ha_archive::write_row");
|
||||
|
||||
if (share->crashed)
|
||||
|
|
@ -596,16 +596,16 @@ int ha_archive::write_row(byte * buf)
|
|||
We should probably mark the table as damagaged if the record is written
|
||||
but the blob fails.
|
||||
*/
|
||||
for (ptr= table->s->blob_field, end=ptr + table->s->blob_fields ;
|
||||
ptr != end ;
|
||||
ptr++)
|
||||
for (bptr= table->s->blob_field, end=bptr + table->s->blob_fields ;
|
||||
bptr != end ;
|
||||
bptr++)
|
||||
{
|
||||
char *ptr;
|
||||
uint32 size= ((Field_blob*) table->field[*ptr])->get_length();
|
||||
uint32 size= ((Field_blob*) table->field[*bptr])->get_length();
|
||||
|
||||
if (size)
|
||||
{
|
||||
((Field_blob*) table->field[*ptr])->get_ptr(&ptr);
|
||||
((Field_blob*) table->field[*bptr])->get_ptr(&ptr);
|
||||
written= gzwrite(share->archive_write, ptr, (unsigned)size);
|
||||
if (written != size)
|
||||
goto error;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue