mirror of
https://github.com/akuker/RASCSI.git
synced 2024-06-01 04:41:38 +00:00
Updated assertion handling
This commit is contained in:
parent
632fe1acd8
commit
6af5394f78
|
@ -75,6 +75,10 @@ DeviceFactory& device_factory = DeviceFactory::instance();
|
||||||
RascsiImage rascsi_image;
|
RascsiImage rascsi_image;
|
||||||
RascsiResponse rascsi_response(&device_factory, &rascsi_image);
|
RascsiResponse rascsi_response(&device_factory, &rascsi_image);
|
||||||
|
|
||||||
|
// Set up the operation info data early, in order to trigger an assertion on startup if the operation list is incomplete
|
||||||
|
PbResult pb_operation_info_result;
|
||||||
|
PbOperationInfo *pb_operation_info = rascsi_response.GetOperationInfo(pb_operation_info_result);
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
// Signal Processing
|
// Signal Processing
|
||||||
|
@ -1566,9 +1570,8 @@ static void *MonThread(void *param)
|
||||||
case OPERATION_INFO: {
|
case OPERATION_INFO: {
|
||||||
LOGTRACE("Received %s command", PbOperation_Name(command.operation()).c_str());
|
LOGTRACE("Received %s command", PbOperation_Name(command.operation()).c_str());
|
||||||
|
|
||||||
PbResult result;
|
pb_operation_info_result.set_allocated_operation_info(pb_operation_info);
|
||||||
result.set_allocated_operation_info(rascsi_response.GetOperationInfo(result));
|
SerializeMessage(fd, pb_operation_info_result);
|
||||||
SerializeMessage(fd, result);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user