From: Roland Häder Date: Fri, 22 Feb 2013 08:09:27 +0000 (+0000) Subject: Made usage of unsetCriteria() to remove unwanted 'node_list' in DHT as this is double... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a801851ff0df99b76f42bd918b52826c77f6b4db;p=hub.git Made usage of unsetCriteria() to remove unwanted 'node_list' in DHT as this is double data --- diff --git a/application/hub/main/database/wrapper/node/class_NodeDistributedHashTableDatabaseWrapper.php b/application/hub/main/database/wrapper/node/class_NodeDistributedHashTableDatabaseWrapper.php index f9d74bdad..55f182f7f 100644 --- a/application/hub/main/database/wrapper/node/class_NodeDistributedHashTableDatabaseWrapper.php +++ b/application/hub/main/database/wrapper/node/class_NodeDistributedHashTableDatabaseWrapper.php @@ -223,6 +223,9 @@ class NodeDistributedHashTableDatabaseWrapper extends BaseDatabaseWrapper implem // Add all array elements $handlerInstance->addArrayToDataSet($dataSetInstance, $messageData); + // Remove 'node_list' + $dataSetInstance->unsetCriteria('node_list'); + // Run the "INSERT" query $this->queryInsertDataSet($dataSetInstance); } @@ -248,6 +251,9 @@ class NodeDistributedHashTableDatabaseWrapper extends BaseDatabaseWrapper implem // Add all array elements $handlerInstance->addArrayToDataSet($dataSetInstance, $messageData); + // Remove 'node_list' + $dataSetInstance->unsetCriteria('node_list'); + // Run the "UPDATE" query $this->queryUpdateDataSet($dataSetInstance); }