Revision 8a7ddfb0
b/snf-pithos-backend/pithos/backends/modular.py | ||
---|---|---|
1241 | 1241 |
return node |
1242 | 1242 |
|
1243 | 1243 |
def _lookup_account(self, account, create=True): |
1244 |
node = self.node.node_lookup(account) |
|
1244 |
for_update = True if create else False |
|
1245 |
node = self.node.node_lookup(account, for_update=for_update) |
|
1245 | 1246 |
if node is None and create: |
1246 | 1247 |
node = self._put_path( |
1247 | 1248 |
account, self.ROOTNODE, account, |
Also available in: Unified diff