From f3d200c0da44cb7c98110a0aa9d839f30a2aeb80 Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Tue, 24 Jan 2012 13:23:21 -0800 Subject: [PATCH] filestore: fix non-::-prefixed close Signed-off-by: Josh Durgin --- src/os/FileStore.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc index 5719d9eda6f26..64ab11b65385a 100644 --- a/src/os/FileStore.cc +++ b/src/os/FileStore.cc @@ -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; -- 2.39.5