Handle single and second string data in failure dispatch.

This commit is contained in:
Bartosz Taudul 2020-09-30 15:46:00 +02:00
parent 3135191e90
commit cecc3783a8

View File

@ -2985,6 +2985,16 @@ void Worker::DispatchFailure( const QueueItem& ev, const char*& ptr )
} }
else else
{ {
uint16_t sz;
switch( ev.hdr.type )
{
case QueueType::SingleStringData:
case QueueType::SecondStringData:
ptr += sizeof( QueueHeader );
memcpy( &sz, ptr, sizeof( sz ) );
ptr += sizeof( sz ) + sz;
break;
default:
ptr += QueueDataSize[ev.hdr.idx]; ptr += QueueDataSize[ev.hdr.idx];
switch( ev.hdr.type ) switch( ev.hdr.type )
{ {
@ -3001,6 +3011,7 @@ void Worker::DispatchFailure( const QueueItem& ev, const char*& ptr )
break; break;
} }
} }
}
} }
void Worker::Query( ServerQuery type, uint64_t data, uint32_t extra ) void Worker::Query( ServerQuery type, uint64_t data, uint32_t extra )