From add563cf751bbff3bbd4dd00daf04ecf995f921e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 12 Feb 2013 04:56:37 +0000 Subject: [PATCH] Always used own session id ... :( --- .../node/class_NodeDistributedHashTableDatabaseWrapper.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/application/hub/main/database/wrapper/node/class_NodeDistributedHashTableDatabaseWrapper.php b/application/hub/main/database/wrapper/node/class_NodeDistributedHashTableDatabaseWrapper.php index ffa6e4baa..d880df4b8 100644 --- a/application/hub/main/database/wrapper/node/class_NodeDistributedHashTableDatabaseWrapper.php +++ b/application/hub/main/database/wrapper/node/class_NodeDistributedHashTableDatabaseWrapper.php @@ -174,11 +174,8 @@ class NodeDistributedHashTableDatabaseWrapper extends BaseDatabaseWrapper implem // Get search criteria $searchInstance = ObjectFactory::createObjectByConfiguredName('search_criteria_class'); - // Get node instance - $nodeInstance = Registry::getRegistry()->getInstance('node'); - // Search for session id and limit it to one entry - $searchInstance->addCriteria(self::DB_COLUMN_SESSION_ID, $nodeInstance->getSessionId()); + $searchInstance->addCriteria(self::DB_COLUMN_SESSION_ID, $sessionId); $searchInstance->setLimit(1); // Query database and get a result instance back -- 2.39.5