Commit f86e0fba by Georgios Bitzes Committed by Elvin Sindrilaru

MGM: Fix many instances of incorrect lock guard usage

parent 0448d1ce
......@@ -84,7 +84,7 @@ Balancer::Balance(void)
do {
XrdSysThread::SetCancelOff();
{
XrdSysMutexHelper(gOFS->InitializationMutex);
XrdSysMutexHelper lock(gOFS->InitializationMutex);
if (gOFS->Initialized == gOFS->kBooted) {
go = true;
......
......@@ -370,7 +370,7 @@ Converter::Convert(void)
do {
XrdSysThread::SetCancelOff();
{
XrdSysMutexHelper(gOFS->InitializationMutex);
XrdSysMutexHelper lock(gOFS->InitializationMutex);
if (gOFS->Initialized == gOFS->kBooted) {
go = true;
......
......@@ -307,7 +307,7 @@ retry:
do {
XrdSysThread::SetCancelOff();
{
XrdSysMutexHelper(gOFS->InitializationMutex);
XrdSysMutexHelper lock(gOFS->InitializationMutex);
if (gOFS->Initialized == gOFS->kBooted) {
go = true;
......
......@@ -602,7 +602,7 @@ GeoBalancer::GeoBalance()
do {
XrdSysThread::SetCancelOff();
{
XrdSysMutexHelper(gOFS->InitializationMutex);
XrdSysMutexHelper lock(gOFS->InitializationMutex);
if (gOFS->Initialized == gOFS->kBooted) {
go = true;
......
......@@ -631,7 +631,7 @@ GroupBalancer::GroupBalance()
do {
XrdSysThread::SetCancelOff();
{
XrdSysMutexHelper(gOFS->InitializationMutex);
XrdSysMutexHelper lock(gOFS->InitializationMutex);
if (gOFS->Initialized == gOFS->kBooted) {
go = true;
......
......@@ -111,7 +111,7 @@ LRU::LRUr()
do {
XrdSysThread::SetCancelOff();
{
XrdSysMutexHelper(gOFS->InitializationMutex);
XrdSysMutexHelper lock(gOFS->InitializationMutex);
if (gOFS->Initialized == gOFS->kBooted) {
go = true;
......
......@@ -110,7 +110,7 @@ Recycle::Recycler()
do {
XrdSysThread::SetCancelOff();
{
XrdSysMutexHelper(gOFS->InitializationMutex);
XrdSysMutexHelper lock(gOFS->InitializationMutex);
if (gOFS->Initialized == gOFS->kBooted) {
go = true;
......
......@@ -130,7 +130,7 @@ VstMessaging::Listen()
}
{
XrdSysMutexHelper(gOFS->InitializationMutex);
XrdSysMutexHelper lock(gOFS->InitializationMutex);
if (gOFS->Initialized == gOFS->kBooted) {
booted = true;
......
......@@ -59,7 +59,7 @@ HttpServer::Handler(void* cls,
// --------------------------------------------------------
{
{
XrdSysMutexHelper(gOFS->InitializationMutex);
XrdSysMutexHelper lock(gOFS->InitializationMutex);
if ((gOFS->Initialized == gOFS->kBooted) ||
(gOFS->Initialized == gOFS->kCompacting)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment