diff options
author | Charles E. Rolke <chug@apache.org> | 2012-09-07 20:24:43 +0000 |
---|---|---|
committer | Charles E. Rolke <chug@apache.org> | 2012-09-07 20:24:43 +0000 |
commit | 4ea8b46602b10fcaf817378daa7254f959d633cf (patch) | |
tree | 3d7ff5da997148ec1fbecc37d7048cbb5f3bbd1a /cpp/src/qpid/acl/AclConnectionCounter.cpp | |
parent | 1e49b9a6e59c9a767cbd573a54656fba2e4329dd (diff) | |
download | qpid-python-4ea8b46602b10fcaf817378daa7254f959d633cf.tar.gz |
QPID-4142 C++ Broker connection counting. Revert r1371772 which applied only to 0.18 and is obsolete on trunk.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1382155 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/acl/AclConnectionCounter.cpp')
-rw-r--r-- | cpp/src/qpid/acl/AclConnectionCounter.cpp | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/cpp/src/qpid/acl/AclConnectionCounter.cpp b/cpp/src/qpid/acl/AclConnectionCounter.cpp index 8c6e3eef6e..052fa3c222 100644 --- a/cpp/src/qpid/acl/AclConnectionCounter.cpp +++ b/cpp/src/qpid/acl/AclConnectionCounter.cpp @@ -296,47 +296,6 @@ bool ConnectionCounter::approveConnection(const broker::Connection& connection) } } - -// -// setUserId -// On cluster shadow connections, track a new user id for this connection. -// -void ConnectionCounter::setUserId(const broker::Connection& connection, - const std::string& username) -{ - Mutex::ScopedLock locker(dataLock); - - connectCountsMap_t::iterator eRef = connectProgressMap.find(connection.getMgmtId()); - if (eRef != connectProgressMap.end()) { - if ((*eRef).second == C_OPENED){ - // Connection has been opened so that current user has been counted - if (connection.isShadow()) { - // This is a shadow connection and therefore receives userId changes - QPID_LOG(debug, "Changing User ID for cluster connection: " - << connection.getMgmtId() << ", old user:'" << connection.getUserId() - << "', new user:'" << username << "'"); - - // Decrement user in-use count for old userId - releaseLH(connectByNameMap, - connection.getUserId(), - nameLimit); - // Increment user in-use count for new userId - (void) countConnectionLH(connectByNameMap, username, nameLimit, false); - } else { - QPID_LOG(warning, "Changing User ID for non-cluster connections is not supported: " - << connection.getMgmtId() << ", old user " << connection.getUserId() - << ", new user " << username); - } - } else { - // connection exists but has not been opened. - // setUserId is called in normal course. The user gets counted when connection is opened. - } - } else { - // Connection does not exist. - } -} - - // // getClientIp - given a connection's mgmtId return the client host part. // |