From: Roland Häder Date: Tue, 12 Feb 2013 04:56:37 +0000 (+0000) Subject: Always used own session id ... :( X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=add563cf751bbff3bbd4dd00daf04ecf995f921e;p=hub.git Always used own session id ... :( --- 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