Replace raw GWBUF pointers with mxs::Buffer

Now that the query queue is stored in an actual container, it is only
logical to use mxs::Buffer instead of GWBUF as the stored type.
This commit is contained in:
Markus Mäkelä
2019-03-16 10:51:05 +02:00
parent 5e3198f831
commit 6042a53cb3
5 changed files with 31 additions and 11 deletions

View File

@ -783,3 +783,8 @@ void gwbuf_hexdump(GWBUF* buffer, int log_level)
MXS_LOG_MESSAGE(log_level, "%.*s", n, ss.str().c_str());
}
void gwbuf_hexdump(const mxs::Buffer& buffer, int log_level)
{
return gwbuf_hexdump(const_cast<mxs::Buffer&>(buffer).get(), log_level);
}