1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Fixed bug #42496 - the server could crash on a debug assert after a failure

to write into a closed socket
This commit is contained in:
Dmitry Shulga
2010-07-21 14:56:43 +07:00
parent 48a74d7472
commit 49d327ebf7
4 changed files with 24 additions and 8 deletions

View File

@@ -658,7 +658,12 @@ void Materialized_cursor::fetch(ulong num_rows)
if ((res= table->file->rnd_next(table->record[0])))
break;
/* Send data only if the read was successful. */
result->send_data(item_list);
/*
If network write failed (i.e. due to a closed socked),
the error has already been set. Just return.
*/
if (result->send_data(item_list))
return;
}
switch (res) {