continue;
if (authorities) {
+ ObjectLock olock(authorities);
BOOST_FOREACH(const String& authority, authorities) {
if (Utility::Match(authority, endpoint->GetName())) {
match = true;
std::sort(endpoints.begin(), endpoints.end());
+ std::ostringstream msgbuf;
+ BOOST_FOREACH(const String& name, endpoints) {
+ msgbuf << name << ", ";
+ }
+ Log(LogDebug, "cluster", "Responsible for " + object->GetName() + ": " + msgbuf.str());
+
String key = object->GetType()->GetName() + "\t" + object->GetName();
unsigned long hash = Utility::SDBM(key);
unsigned long index = hash % endpoints.size();