]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/LogEntry: use as_legacy_addr()
authorSage Weil <sage@redhat.com>
Mon, 4 Feb 2019 11:42:38 +0000 (05:42 -0600)
committerSage Weil <sage@redhat.com>
Thu, 7 Feb 2019 12:13:09 +0000 (06:13 -0600)
...just in case addrs has an any addr.

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/LogEntry.cc

index e0103478672af0f06c6d0bacb57d325162d08565..993bf444dc3937946e7ea5ea5e9f9d581944f4d4 100644 (file)
@@ -197,7 +197,7 @@ void LogEntry::encode(bufferlist& bl, uint64_t features) const
     __u16 t = prio;
     entity_inst_t who;
     who.name = rank;
-    who.addr = addrs.legacy_addr();
+    who.addr = addrs.as_legacy_addr();
     encode(who, bl, features);
     encode(stamp, bl);
     encode(seq, bl);