]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
filestore: fix non-::-prefixed close
authorJosh Durgin <josh.durgin@dreamhost.com>
Tue, 24 Jan 2012 21:23:21 +0000 (13:23 -0800)
committerJosh Durgin <josh.durgin@dreamhost.com>
Tue, 24 Jan 2012 21:23:21 +0000 (13:23 -0800)
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
src/os/FileStore.cc

index 5719d9eda6f269e979c99d825fd4bfe76c9f0f24..64ab11b65385a6a04a75d18c0c48c9aaeccff2ca 100644 (file)
@@ -268,7 +268,7 @@ int FileStore::lfn_open(coll_t cid, const hobject_t& oid, int flags, mode_t mode
   if ((flags & O_CREAT) && (!exist)) {
     r = index->created(oid, path->path());
     if (r < 0) {
-      close(fd);
+      TEMP_FAILURE_RETRY(::close(fd));
       derr << "error creating " << oid << " (" << path->path()
           << ") in index: " << cpp_strerror(-r) << dendl;
       return r;