diff options
author | Benjamin Saller <bcsaller@objectrealms.net> | 2007-07-27 21:47:06 (GMT) |
---|---|---|
committer | Benjamin Saller <bcsaller@objectrealms.net> | 2007-07-27 21:47:06 (GMT) |
commit | 235dfefedff540a113c7b1ec765c8557e96d6adf (patch) | |
tree | b6b4e46b1f0c22c99d5d07c7bdbdff27880f72f6 /src/olpc/datastore/backingstore.py | |
parent | fb15c2ed82d5042e2351274dea584405f9a5529b (diff) |
logic error in delete case
Diffstat (limited to 'src/olpc/datastore/backingstore.py')
-rw-r--r-- | src/olpc/datastore/backingstore.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/olpc/datastore/backingstore.py b/src/olpc/datastore/backingstore.py index f163755..57bd787 100644 --- a/src/olpc/datastore/backingstore.py +++ b/src/olpc/datastore/backingstore.py @@ -572,9 +572,11 @@ class InplaceFileBackingStore(FileBackingStore): c = self.indexmanager.get(uid) path = c.get_property('filename', None) self.indexmanager.delete(uid) - path = os.path.join(self.uri, path) - if path and os.path.exists(path): - os.unlink(path) + + if path: + path = os.path.join(self.uri, path) + if os.path.exists(path): + os.unlink(path) def stop(self): if self.walker and self.walker.isAlive(): |