Skip to content

Commit f7c998c

Browse files
Merge pull request ceph#62941 from MaxKellermann/mds_Locker__abort
mds/Locker: use ceph_abort_msg() instead of ceph_assert() Reviewed-by: Venky Shankar <[email protected]>
2 parents 206a4c5 + 82349c4 commit f7c998c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mds/Locker.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ bool Locker::acquire_locks(const MDRequestRef& mdr,
451451
} else if (CDentry *dn = dynamic_cast<CDentry*>(object)) {
452452
dir = dn->get_dir();
453453
} else {
454-
ceph_assert(0 == "unknown type of lock parent");
454+
ceph_abort_msg("unknown type of lock parent");
455455
}
456456
if (dir->get_inode() == mdr->lock_cache->get_dir_inode()) {
457457
// forcibly auth pin if there is lock cache on parent dir

0 commit comments

Comments
 (0)