Revision 36cae9f4 snf-pithos-backend/pithos/backends/util.py
b/snf-pithos-backend/pithos/backends/util.py | ||
---|---|---|
53 | 53 |
public_url_alphabet=None, |
54 | 54 |
account_quota_policy=None, |
55 | 55 |
container_quota_policy=None, |
56 |
container_versioning_policy=None |
|
57 |
): |
|
56 |
container_versioning_policy=None): |
|
58 | 57 |
super(PithosBackendPool, self).__init__(size=size) |
59 | 58 |
self.db_module = db_module |
60 | 59 |
self.db_connection = db_connection |
... | ... | |
79 | 78 |
|
80 | 79 |
def _pool_create(self): |
81 | 80 |
backend = connect_backend( |
82 |
db_module=self.db_module,
|
|
83 |
db_connection=self.db_connection,
|
|
84 |
block_module=self.block_module,
|
|
85 |
block_path=self.block_path,
|
|
86 |
block_umask=self.block_umask,
|
|
87 |
block_size = self.block_size,
|
|
88 |
hash_algorithm = self.hash_algorithm,
|
|
89 |
queue_module=self.queue_module,
|
|
90 |
block_params=self.block_params,
|
|
91 |
queue_hosts=self.queue_hosts,
|
|
92 |
queue_exchange=self.queue_exchange,
|
|
93 |
astakos_url=self.astakos_url,
|
|
94 |
service_token=self.service_token,
|
|
95 |
astakosclient_poolsize=self.astakosclient_poolsize,
|
|
96 |
free_versioning=self.free_versioning,
|
|
97 |
public_url_security=self.public_url_security,
|
|
98 |
public_url_alphabet=self.public_url_alphabet,
|
|
99 |
account_quota_policy=self.account_quota_policy,
|
|
100 |
container_quota_policy=self.container_quota_policy,
|
|
101 |
container_versioning_policy=self.container_versioning_policy)
|
|
81 |
db_module=self.db_module, |
|
82 |
db_connection=self.db_connection, |
|
83 |
block_module=self.block_module, |
|
84 |
block_path=self.block_path, |
|
85 |
block_umask=self.block_umask, |
|
86 |
block_size=self.block_size,
|
|
87 |
hash_algorithm=self.hash_algorithm,
|
|
88 |
queue_module=self.queue_module, |
|
89 |
block_params=self.block_params, |
|
90 |
queue_hosts=self.queue_hosts, |
|
91 |
queue_exchange=self.queue_exchange, |
|
92 |
astakos_url=self.astakos_url, |
|
93 |
service_token=self.service_token, |
|
94 |
astakosclient_poolsize=self.astakosclient_poolsize, |
|
95 |
free_versioning=self.free_versioning, |
|
96 |
public_url_security=self.public_url_security, |
|
97 |
public_url_alphabet=self.public_url_alphabet, |
|
98 |
account_quota_policy=self.account_quota_policy, |
|
99 |
container_quota_policy=self.container_quota_policy, |
|
100 |
container_versioning_policy=self.container_versioning_policy) |
|
102 | 101 |
|
103 | 102 |
backend._real_close = backend.close |
104 | 103 |
backend.close = instancemethod(_pooled_backend_close, backend, |
Also available in: Unified diff