From df7e85abb98cc30681e4ee1ccc03321b554f3112 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 25 Feb 2013 09:10:06 +0000 Subject: [PATCH] Remove index key (and maybe later more) as this doesn't need being distributed --- application/hub/main/dht/node/class_NodeDhtFacade.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/application/hub/main/dht/node/class_NodeDhtFacade.php b/application/hub/main/dht/node/class_NodeDhtFacade.php index 9c00f7127..f78bca4e2 100644 --- a/application/hub/main/dht/node/class_NodeDhtFacade.php +++ b/application/hub/main/dht/node/class_NodeDhtFacade.php @@ -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 -- 2.39.5