]> git.mxchange.org Git - hub.git/commitdiff
Made usage of unsetCriteria() to remove unwanted 'node_list' in DHT as this is double...
authorRoland Häder <roland@mxchange.org>
Fri, 22 Feb 2013 08:09:27 +0000 (08:09 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 22 Feb 2013 08:09:27 +0000 (08:09 +0000)
application/hub/main/database/wrapper/node/class_NodeDistributedHashTableDatabaseWrapper.php

index f9d74bdad5d6074d7950a70adf2187646c889e75..55f182f7f50683a7fb901dbf42e854e25f544e89 100644 (file)
@@ -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);
        }