]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge pull request #57678 from batrick/wip-66188-squid
authorXiubo Li <xiubli@redhat.com>
Wed, 17 Jul 2024 07:29:50 +0000 (15:29 +0800)
committerGitHub <noreply@github.com>
Wed, 17 Jul 2024 07:29:50 +0000 (15:29 +0800)
squid: mds: use regular dispatch for processing metrics

1  2 
src/mds/MetricAggregator.cc

index 0ae8d2d1b95babf1b01f2ec628114200dc24ee3c,d8bfdc4e7d055d25d158ae46a14aa5dc67f5da7d..6cdc3ab193e988cbd86e7b01390caffcc1ba6648
@@@ -126,17 -126,7 +126,8 @@@ void MetricAggregator::shutdown() 
    }
  }
  
- bool MetricAggregator::ms_can_fast_dispatch2(const cref_t<Message> &m) const {
-   return m->get_type() == MSG_MDS_METRICS;
- }
- void MetricAggregator::ms_fast_dispatch2(const ref_t<Message> &m) {
-   bool handled = ms_dispatch2(m);
-   ceph_assert(handled);
- }
  bool MetricAggregator::ms_dispatch2(const ref_t<Message> &m) {
 +  dout(25) << " processing " << m << dendl;
    if (m->get_type() == MSG_MDS_METRICS &&
        m->get_connection()->get_peer_type() == CEPH_ENTITY_TYPE_MDS) {
      const Message *msg = m.get();