Commit cc2bea8b authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

ganeti-masterd: Remove unused locking code

Reviewed-by: iustinp, ultrotter
parent 96cb3986
......@@ -288,8 +288,6 @@ def PoolWorker(worker_id, incoming_queue, context):
if item is None:
break
logging.debug("worker %s processing job %s", worker_id, item.data.job_id)
#utils.Lock('cmd')
try:
proc = mcpu.Processor(context, feedback=lambda x: None)
try:
JobRunner(proc, item, context)
......@@ -305,11 +303,6 @@ def PoolWorker(worker_id, incoming_queue, context):
msg = "unhandled unknown exception"
logging.error(msg, exc_info=True)
item.SetStatus(opcodes.Job.STATUS_FAIL, result=[msg])
finally:
#utils.Unlock('cmd')
#utils.LockCleanup()
pass
logging.debug("worker %s finish job %s", worker_id, item.data.job_id)
logging.debug("worker %s exiting", worker_id)
......
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