From 2fa18ef9e054bbd9b2e8872c27a70918a8f6f17d Mon Sep 17 00:00:00 2001 From: Yao Zongyou Date: Thu, 1 Mar 2018 11:15:44 +0800 Subject: [PATCH] rbd: fix return is missing in NotifyMessage::get_notify_op Signed-off-by: Yao Zongyou --- src/librbd/WatchNotifyTypes.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librbd/WatchNotifyTypes.cc b/src/librbd/WatchNotifyTypes.cc index a91e459f4cc..f4f80fcbc9c 100644 --- a/src/librbd/WatchNotifyTypes.cc +++ b/src/librbd/WatchNotifyTypes.cc @@ -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 &o) { -- 2.39.5