1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Faster log::write() call, memory leak fix, flush master fix.

This commit is contained in:
monty@donna.mysql.com
2000-09-16 04:27:21 +03:00
parent a99c1757be
commit 751f2d1f16
26 changed files with 321 additions and 205 deletions

View File

@ -221,6 +221,7 @@ bool select_send::send_data(List<Item> &items)
DBUG_RETURN(1);
}
}
thd->sent_row_count++;
bool error=my_net_write(&thd->net,(char*) packet->ptr(),packet->length());
DBUG_RETURN(error);
}
@ -256,6 +257,7 @@ select_export::~select_export()
(void) my_close(file,MYF(0));
file= -1;
}
thd->sent_row_count=row_count;
}
int
@ -461,10 +463,10 @@ err:
void select_export::send_error(uint errcode,const char *err)
{
::send_error(&thd->net,errcode,err);
(void) end_io_cache(&cache);
(void) my_close(file,MYF(0));
file= -1;
::send_error(&thd->net,errcode,err);
(void) end_io_cache(&cache);
(void) my_close(file,MYF(0));
file= -1;
}