]> git.mxchange.org Git - hub.git/commitdiff
Remove index key (and maybe later more) as this doesn't need being distributed
authorRoland Häder <roland@mxchange.org>
Mon, 25 Feb 2013 09:10:06 +0000 (09:10 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 25 Feb 2013 09:10:06 +0000 (09:10 +0000)
application/hub/main/dht/node/class_NodeDhtFacade.php

index 9c00f7127600d601f11f9e1b91e58ba36062aff1..f78bca4e27a0a21fd00a13dd4de1e21af6974be7 100644 (file)
@@ -232,6 +232,11 @@ class NodeDhtFacade extends BaseDht implements Distributable, Registerable {
                        // Debug message
                        /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DHT-FACADE[' . __LINE__ . ']: current(' . count($current) . ')[' . gettype($current) . ']=' . print_r($current, TRUE));
 
+                       /*
+                        * Remove some keys as they should not be published.
+                        */
+                       unset($current[$this->getWrapperInstance()->getIndexKey()]);
+
                        // Add this entry
                        array_push($nodeList, $current);
                } // END - while