From acf6b8f96f7c81824551fdb005cbb6b8701297db Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 16 May 2013 16:06:25 -0700 Subject: [PATCH] os/FileStore: fix replay guard error msgs (again) Signed-off-by: Sage Weil --- src/os/FileStore.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc index e29f51ae4f9bd..b32f2875f719f 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); -- 2.39.5