From: Joao Eduardo Luis Date: Tue, 12 Aug 2014 19:17:11 +0000 (+0100) Subject: common: LogEntry: if 'channel' is empty on decode assign default X-Git-Tag: v0.86~167^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b7ce633455ef36e52ac737385b14ab12ffc1c0f1;p=ceph.git common: LogEntry: if 'channel' is empty on decode assign default Signed-off-by: Joao Eduardo Luis --- diff --git a/src/common/LogEntry.cc b/src/common/LogEntry.cc index b3f2c2d0424b..37c2a3a51f50 100644 --- a/src/common/LogEntry.cc +++ b/src/common/LogEntry.cc @@ -187,6 +187,8 @@ void LogEntry::decode(bufferlist::iterator& bl) ::decode(msg, bl); if (struct_v >= 3) { ::decode(channel, bl); + } else { + channel = CLOG_CHANNEL_DEFAULT; } DECODE_FINISH(bl); }