From: Sage Weil Date: Thu, 16 May 2013 23:06:25 +0000 (-0700) Subject: os/FileStore: fix replay guard error msgs (again) X-Git-Tag: v0.64~111 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=acf6b8f96f7c81824551fdb005cbb6b8701297db;p=ceph.git os/FileStore: fix replay guard error msgs (again) Signed-off-by: Sage Weil --- diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc index e29f51ae4f9b..b32f2875f719 100644 --- a/src/os/FileStore.cc +++ b/src/os/FileStore.cc @@ -2166,7 +2166,8 @@ void FileStore::_set_replay_guard(coll_t cid, get_cdir(cid, fn, sizeof(fn)); int fd = ::open(fn, O_RDONLY); if (fd < 0) { - derr << "_set_replay_guard " << cid << " error " << fd << dendl; + int err = errno; + derr << "_set_replay_guard " << cid << " error " << cpp_strerror(err) << dendl; assert(0 == "_set_replay_guard failed"); } _set_replay_guard(fd, spos, 0, in_progress); @@ -2222,7 +2223,7 @@ void FileStore::_close_replay_guard(coll_t cid, int fd = ::open(fn, O_RDONLY); if (fd < 0) { int err = errno; - derr << "_set_replay_guard " << cid << " error " << cpp_strerror(err) << dendl; + derr << "_close_replay_guard " << cid << " error " << cpp_strerror(err) << dendl; assert(0 == "_close_replay_guard failed"); } _close_replay_guard(fd, spos);