Revision 1a5d1649 snf-pithos-backend/pithos/workers/glue.py

b/snf-pithos-backend/pithos/workers/glue.py
41 41
    pmap = {}
42 42
    worker_id = None
43 43
    ioctx_pool = None
44
    ArchipelagoConfFile = '/etc/archipelago/archipelago.conf'
44 45

  
45 46
    @classmethod
46 47
    def setmap(cls, pid, index):
......
48 49
        WorkerGlue.worker_id = index
49 50

  
50 51
    @classmethod
51
    def setupXsegPool(cls, ObjectPool, Segment, Xseg_ctx, cfile, pool_size=8):
52
    def setupXsegPool(cls, ObjectPool, Segment, Xseg_ctx,
53
                      cfile=ArchipelagoConfFile, pool_size=8):
52 54
        worker_id = WorkerGlue.worker_id
53
        ARCHIPELAGO_CONF_FILE = cfile
55
        WorkerGlue.ArchipelagoConfFile = ARCHIPELAGO_CONF_FILE = cfile
54 56
        ARCHIPELAGO_SEGMENT_TYPE = 'segdev'
55 57
        ARCHIPELAGO_SEGMENT_NAME = 'xsegbd'
56 58
        cfg = {}

Also available in: Unified diff