Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
bbbc13c2
Commit
bbbc13c2
authored
Jun 30, 2014
by
Chrysostomos Nanakos
Browse files
pithos: Expose Archipelago pool to modular backend
parent
e288b3c0
Changes
3
Hide whitespace changes
Inline
Side-by-side
snf-pithos-backend/pithos/backends/lib/hashfiler/archipelagoblocker.py
View file @
bbbc13c2
...
...
@@ -56,7 +56,7 @@ class ArchipelagoBlocker(object):
emptyhash
=
hasher
.
digest
()
self
.
blocksize
=
blocksize
self
.
ioctx_pool
=
glue
.
WorkerGlue
()
.
ioctx_pool
self
.
ioctx_pool
=
glue
.
WorkerGlue
.
ioctx_pool
self
.
dst_port
=
int
(
cfg
.
getint
(
'mapperd'
,
'blockerb_port'
))
self
.
hashtype
=
hashtype
self
.
hashlen
=
len
(
emptyhash
)
...
...
snf-pithos-backend/pithos/backends/lib/hashfiler/archipelagomapper.py
View file @
bbbc13c2
...
...
@@ -49,7 +49,7 @@ class ArchipelagoMapper(object):
self
.
namelen
=
params
[
'namelen'
]
cfg
=
ConfigParser
.
ConfigParser
()
cfg
.
readfp
(
open
(
params
[
'archipelago_cfile'
]))
self
.
ioctx_pool
=
glue
.
WorkerGlue
()
.
ioctx_pool
self
.
ioctx_pool
=
glue
.
WorkerGlue
.
ioctx_pool
self
.
dst_port
=
int
(
cfg
.
getint
(
'mapperd'
,
'blockerm_port'
))
self
.
mapperd_port
=
int
(
cfg
.
getint
(
'vlmcd'
,
'mapper_port'
))
...
...
snf-pithos-backend/pithos/backends/modular.py
View file @
bbbc13c2
...
...
@@ -302,6 +302,8 @@ class ModularBackend(BaseBackend):
glue
.
WorkerGlue
.
setupXsegPool
(
ObjectPool
,
Segment
,
Xseg_ctx
,
cfile
=
archipelago_conf_file
,
pool_size
=
xseg_pool_size
)
self
.
ioctx_pool
=
glue
.
WorkerGlue
.
ioctx_pool
self
.
block_module
=
load_module
(
block_module
)
self
.
block_params
=
block_params
params
=
{
'path'
:
block_path
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment