size = GetDirectorySize(dso->path);
CATCH:
+ SysLog(NID_SYS, "pid: %d, id: %d, size: %lld, result: %s", dso->pid, dso->msg_id, size, GetErrorMessage(r));
SendResponse(dso->pid, dso->msg_id, size, r);
delete dso;
return null;
pthread_mutex_lock(&send_msg_lock);
ArrayList* data = null;
- String* value = null;
+ String* pValue = null;
+ String* pMessageId = null;
SysLog(NID_SYS, "It sends asynchronous result.");
data = new (std::nothrow) ArrayList(SingleObjectDeleter);
data->Construct();
+
+ pMessageId = new (std::nothrow) String();
+ pMessageId->Append(msg_id);
+
data->Add(new (std::nothrow) String(_RUNTIME_SERVICE_ID));
data->Add(new (std::nothrow) String(_RUNTIME_GET_SIZE));
- data->Add(new (std::nothrow) String(msg_id));
- value = new (std::nothrow) String();
- value->Append(size);
- data->Add(value);
+ data->Add(pMessageId);
+
+ pValue = new (std::nothrow) String();
+ pValue->Append(size);
+ data->Add(pValue);
if(rcode == E_SUCCESS)
{