]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: fix return is missing in NotifyMessage::get_notify_op 20656/head
authorYao Zongyou <yaozongyou@vip.qq.com>
Thu, 1 Mar 2018 03:15:44 +0000 (11:15 +0800)
committerYao Zongyou <yaozongyou@vip.qq.com>
Thu, 1 Mar 2018 03:15:44 +0000 (11:15 +0800)
Signed-off-by: Yao Zongyou <yaozongyou@vip.qq.com>
src/librbd/WatchNotifyTypes.cc

index a91e459f4cce1f704e17f27fe78d07415062893d..f4f80fcbc9c26ae1978150247a8c50cf3b8f15b2 100644 (file)
@@ -382,7 +382,7 @@ void NotifyMessage::dump(Formatter *f) const {
 }
 
 NotifyOp NotifyMessage::get_notify_op() const {
-  apply_visitor(GetNotifyOpVisitor(), payload);
+  return apply_visitor(GetNotifyOpVisitor(), payload);
 }
 
 void NotifyMessage::generate_test_instances(std::list<NotifyMessage *> &o) {