Commit 34c9c846 authored by Chrysostomos Nanakos's avatar Chrysostomos Nanakos Committed by Christos Stavrakakis
Browse files

pithos: Return if XSEG Object Pool exists

parent a26fc6a8
......@@ -51,6 +51,8 @@ class WorkerGlue(object):
@classmethod
def setupXsegPool(cls, ObjectPool, Segment, Xseg_ctx,
cfile=ArchipelagoConfFile, pool_size=8):
if WorkerGlue.ioctx_pool is not None:
return
worker_id = WorkerGlue.worker_id
WorkerGlue.ArchipelagoConfFile = ARCHIPELAGO_CONF_FILE = cfile
ARCHIPELAGO_SEGMENT_TYPE = 'segdev'
......
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