Added command type to:
gwbuf struct dcb struct This int field will hold the last command executed or sent to backend. It will be 0 for most cases, setting it with a different value could help route differently the data from backend to client or some custom error messages.
This commit is contained in:
@ -27,9 +27,10 @@
|
||||
* @verbatim
|
||||
* Revision History
|
||||
*
|
||||
* Date Who Description
|
||||
* 10/06/13 Mark Riddoch Initial implementation
|
||||
* 11/07/13 Mark Riddoch Add reference count mechanism
|
||||
* Date Who Description
|
||||
* 10/06/13 Mark Riddoch Initial implementation
|
||||
* 11/07/13 Mark Riddoch Add reference count mechanism
|
||||
* 16/07/2013 Massimiliano Pinto Added command type to gwbuf struct
|
||||
*
|
||||
* @endverbatim
|
||||
*/
|
||||
@ -80,6 +81,7 @@ SHARED_BUF *sbuf;
|
||||
sbuf->refcount = 1;
|
||||
rval->sbuf = sbuf;
|
||||
rval->next = NULL;
|
||||
rval->command = 0;
|
||||
|
||||
return rval;
|
||||
}
|
||||
@ -126,6 +128,8 @@ GWBUF *rval;
|
||||
rval->start = buf->start;
|
||||
rval->end = buf->end;
|
||||
rval->next = NULL;
|
||||
rval->command = buf->command;
|
||||
|
||||
return rval;
|
||||
}
|
||||
/**
|
||||
|
Reference in New Issue
Block a user