Added routines comment

Added routines comment
This commit is contained in:
MassimilianoPinto
2014-10-24 12:33:38 +02:00
parent 970511a275
commit c207b8b990

View File

@ -231,9 +231,16 @@ retblock:
/** /**
* create mysql response packet */ * create a GWBUFF with a MySQL ERR packet
*
* @param packet_number MySQL protocol sequence number in the packet
* @param in_affected_rows MySQL affected rows
* @param mysql_errno The MySQL errno
* @param sqlstate_msg The MySQL State Message
* @param mysql_message The Error Message
* @return The allocated GWBUF or NULL on failure
*/ */
GWBUF* modutil_create_mysql_packet( GWBUF *modutil_create_mysql_err_msg(
int packet_number, int packet_number,
int affected_rows, int affected_rows,
int merrno, int merrno,
@ -276,9 +283,8 @@ GWBUF* modutil_create_mysql_packet(
ss_dassert(errbuf != NULL); ss_dassert(errbuf != NULL);
if (errbuf == NULL) if (errbuf == NULL)
{ return NULL;
return 0;
}
outbuf = GWBUF_DATA(errbuf); outbuf = GWBUF_DATA(errbuf);
/** write packet header and packet number */ /** write packet header and packet number */