]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/FileStore: fix replay guard error msgs (again)
authorSage Weil <sage@inktank.com>
Thu, 16 May 2013 23:06:25 +0000 (16:06 -0700)
committerSage Weil <sage@inktank.com>
Thu, 16 May 2013 23:12:11 +0000 (16:12 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
src/os/FileStore.cc

index e29f51ae4f9bd0050fcb5ef9fffcc7c8af82be30..b32f2875f719fb856e079e2a6c8c980e4143eb03 100644 (file)
@@ -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);