aboutsummaryrefslogtreecommitdiffstats
path: root/src/py/imc/blobclient.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/py/imc/blobclient.py')
-rwxr-xr-xsrc/py/imc/blobclient.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/py/imc/blobclient.py b/src/py/imc/blobclient.py
index 8d54ffe..f4879af 100755
--- a/src/py/imc/blobclient.py
+++ b/src/py/imc/blobclient.py
@@ -165,8 +165,11 @@ class BlobClient:
# TODO:
# pend operation when client can't imc call server
return False
- # TODO:
- # if commit success , copy tmpfile to location
+ else:
+ # TODO:
+ # if commit success , copy tmpfile to location
+ if ret:
+ blobhandle.copy_tmp()
# TODO:
# opencounts ?
@@ -227,7 +230,8 @@ class BlobClient:
self._opencounts[blob] += 1
return handle
- def close(self, blobhandle):
- blob = ''.join([blobhandle._name, '_',
- str(blobhandle.get_rev())])
- self._opencounts[blob] -= 1
+ def close(self, blobhandle):
+ blob = ''.join([blobhandle._name, '_',
+ str(blobhandle.get_rev())])
+ self._opencounts[blob] -= 1
+