From 21367558bafd22c0861188f4c8f62026a598e845 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 26 Jan 2009 10:13:44 -0800 Subject: [PATCH] ceph: warn when we get message with wrong fsid --- src/ceph.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ceph.cc b/src/ceph.cc index 4841c396ccdb2..40e22761e9f9d 100644 --- a/src/ceph.cc +++ b/src/ceph.cc @@ -102,6 +102,12 @@ void handle_notify(MMonObserveNotify *notify) << (notify->is_latest ? " (latest)" : "") << dendl; + if (ceph_fsid_compare(¬ify->fsid, &monmap.fsid)) { + dout(0) << notify->get_source_inst() << " notify fsid " << notify->fsid << " != " << monmap.fsid << dendl; + delete notify; + return; + } + if (map_ver[notify->machine_id] >= notify->ver) return; -- 2.39.5