From a801851ff0df99b76f42bd918b52826c77f6b4db Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 22 Feb 2013 08:09:27 +0000 Subject: [PATCH] Made usage of unsetCriteria() to remove unwanted 'node_list' in DHT as this is double data --- .../node/class_NodeDistributedHashTableDatabaseWrapper.php | 6 ++++++ 1 file changed, 6 insertions(+) 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); } -- 2.39.5