libnxcc: correct handling of CMD_REQUEST_COMPLETED
authorVictor Kirhenshtein <victor@netxms.org>
Tue, 3 Nov 2015 16:52:08 +0000 (18:52 +0200)
committerVictor Kirhenshtein <victor@netxms.org>
Tue, 3 Nov 2015 16:52:08 +0000 (18:52 +0200)
include/nxcc.h
src/libnxcc/comm.cpp

index 3ab254c..e82751c 100644 (file)
@@ -24,6 +24,8 @@
 #define NXCC_RCC_INVALID_NODE    1
 #define NXCC_RCC_TIMEOUT         2
 #define NXCC_RCC_COMM_FAILURE    3
+#define NXCC_RCC_NOT_MASTER      4
+#define NXCC_RCC_INVALID_REQUEST 5
 
 /**
  * Cluster node states
index 2e6b954..001c7f7 100644 (file)
@@ -149,6 +149,9 @@ static THREAD_RESULT THREAD_CALL ClusterReceiverThread(void *arg)
             case CMD_KEEPALIVE:
                delete msg;
                break;
+            case CMD_REQUEST_COMPLETED:
+               node->m_msgWaitQueue->put(msg);
+               break;
             default:
                if (g_nxccEventHandler->onMessage(msg, node->m_id))
                   delete msg;