Skip to content

Commit 50390af

Browse files
committed
mon/scrub: print detail if get error from store
Signed-off-by: Yite Gu <[email protected]>
1 parent e7f3bed commit 50390af

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/mon/Monitor.cc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5708,7 +5708,12 @@ bool Monitor::_scrub(ScrubResult *r,
57085708

57095709
bufferlist bl;
57105710
int err = store->get(k.first, k.second, bl);
5711-
ceph_assert(err == 0);
5711+
if (err != 0) {
5712+
derr << __func__ << " store got: " << cpp_strerror(err)
5713+
<< " prefix: " << k.first << " key: " << k.second
5714+
<< dendl;
5715+
ceph_abort();
5716+
}
57125717

57135718
uint32_t key_crc = bl.crc32c(0);
57145719
dout(30) << __func__ << " " << k << " bl " << bl.length() << " bytes"

0 commit comments

Comments
 (0)