]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: Fix ambiguous call to addr.parse
authorAdam C. Emerson <aemerson@redhat.com>
Tue, 6 Apr 2021 18:00:48 +0000 (14:00 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Wed, 7 Apr 2021 17:28:05 +0000 (13:28 -0400)
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/librbd/managed_lock/BreakRequest.cc

index e482d221e6fccf1e04a7fa433ee3cc4cecf71dfd..69cd353016138607f14645a5c303534297e1e332 100644 (file)
@@ -152,7 +152,7 @@ void BreakRequest<I>::send_blocklist() {
   }
 
   entity_addr_t locker_addr;
-  if (!locker_addr.parse(m_locker.address.c_str(), 0)) {
+  if (!locker_addr.parse(m_locker.address)) {
     lderr(m_cct) << "unable to parse locker address: " << m_locker.address
                  << dendl;
     finish(-EINVAL);