diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index 60643b1db..0b68923da 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -1067,9 +1067,9 @@ sub dispatch_request { foreach $xcatdest (@xcatdests) { my $dlock; if ($xcatdest and thishostisnot($xcatdest)) { - mkpath("/var/lock/xcat/"); #For now, limit intra-xCAT requests to one at a time, to mitigate DB handle usage - open($dlock,">","/var/lock/xcat/dispatchto_$xcatdest"); - flock($dlock,LOCK_EX); + #mkpath("/var/lock/xcat/"); #For now, limit intra-xCAT requests to one at a time, to mitigate DB handle usage + #open($dlock,">","/var/lock/xcat/dispatchto_$xcatdest"); + #flock($dlock,LOCK_EX); $ENV{XCATHOST} = ($xcatdest =~ /:/ ? $xcatdest : $xcatdest.":3001" ); $$progname.=": connection to ".$ENV{XCATHOST}; my $errstr; @@ -1080,8 +1080,8 @@ sub dispatch_request { if ($@) { $errstr=$@; } - unlink("/var/lock/xcat/dispatchto_$xcatdest"); - flock($dlock,LOCK_UN); + #unlink("/var/lock/xcat/dispatchto_$xcatdest"); + #flock($dlock,LOCK_UN); if ($errstr) { if ($numdests == 1) { dispatch_callback({error=>["Unable to dispatch command to ".$ENV{XCATHOST}.", command will not make changes to that server ($errstr)"],errorcode=>[1]});