From a2cfd7de28cc3deae1481c7018c162fed2c3eef6 Mon Sep 17 00:00:00 2001 From: "Charles E. Rolke" Date: Thu, 1 Mar 2012 15:25:33 +0000 Subject: QPID-3799-acl acl fixup - whitespace git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/QPID-3799-acl@1295616 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/acl/Acl.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cpp/src/qpid/acl/Acl.cpp') diff --git a/cpp/src/qpid/acl/Acl.cpp b/cpp/src/qpid/acl/Acl.cpp index a4cc24cc65..6f758e46bf 100644 --- a/cpp/src/qpid/acl/Acl.cpp +++ b/cpp/src/qpid/acl/Acl.cpp @@ -74,7 +74,7 @@ bool Acl::authorise( std::map* params) { boost::shared_ptr dataLocal; - { + { Mutex::ScopedLock locker(dataLock); dataLocal = data; //rcu copy } @@ -114,7 +114,7 @@ bool Acl::result( const std::string& name) { bool result(false); - + switch (aclreslt) { case ALLOWLOG: @@ -159,7 +159,7 @@ bool Acl::readAclFile(std::string& errorText) return readAclFile(aclValues.aclFile, errorText); } -bool Acl::readAclFile(std::string& aclFile, std::string& errorText) { +bool Acl::readAclFile(std::string& aclFile, std::string& errorText) { boost::shared_ptr d(new AclData); AclReader ar; if (ar.read(aclFile, d)){ @@ -172,7 +172,7 @@ bool Acl::readAclFile(std::string& aclFile, std::string& errorText) { AclValidator validator; validator.validate(d); - { + { Mutex::ScopedLock locker(dataLock); data = d; } @@ -182,7 +182,7 @@ bool Acl::readAclFile(std::string& aclFile, std::string& errorText) { QPID_LOG(debug,"ACL: Transfer ACL is Enabled!"); } - data->aclSource = aclFile; + data->aclSource = aclFile; if (mgmtObject!=0){ mgmtObject->set_transferAcl(transferAcl?1:0); mgmtObject->set_policyFile(aclFile); -- cgit v1.2.1