Revision f75f40cb snf-pithos-backend/pithos/workers/glue.py
b/snf-pithos-backend/pithos/workers/glue.py | ||
---|---|---|
35 | 35 |
|
36 | 36 |
import re |
37 | 37 |
|
38 |
|
|
38 | 39 |
class WorkerGlue(object): |
39 | 40 |
|
40 | 41 |
pmap = {} |
... | ... | |
55 | 56 |
cfg = {} |
56 | 57 |
bcfg = open(ARCHIPELAGO_CONF_FILE).read() |
57 | 58 |
cfg['SEGMENT_PORTS'] = re.search('SEGMENT_PORTS\s*=\s*\d+', |
58 |
bcfg).group(0).split('=')[1] |
|
59 |
bcfg).group(0).split('=')[1]
|
|
59 | 60 |
cfg['SEGMENT_SIZE'] = re.search('SEGMENT_SIZE\s*=\s*\d+', |
60 |
bcfg).group(0).split('=')[1] |
|
61 |
bcfg).group(0).split('=')[1]
|
|
61 | 62 |
ARCHIPELAGO_SEGMENT_PORTS = int(cfg['SEGMENT_PORTS']) |
62 | 63 |
ARCHIPELAGO_SEGMENT_SIZE = int(cfg['SEGMENT_SIZE']) |
63 | 64 |
ARCHIPELAGO_SEGMENT_ALIGNMENT = 12 |
Also available in: Unified diff