]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: avoid duplicate MMonGetOSDMap requests 6075/head
authorSage Weil <sage@redhat.com>
Thu, 24 Sep 2015 15:36:30 +0000 (11:36 -0400)
committerSage Weil <sage@redhat.com>
Thu, 24 Sep 2015 15:36:30 +0000 (11:36 -0400)
commitacda626d031a735c0703ade5d9d5de646d2d557a
treeff2fdb3eb87194599bfd796d0e7367d17dcc4458
parent6f11b82f3007819b58f143ad4b4911c4fb766ab9
osd: avoid duplicate MMonGetOSDMap requests

These are relatively expensive (we grab the full map from the mon) so we
should avoid duplicating our requests.

Track which requests are in flight.  Only send a new request when new
maps are asked for.  Resend requests when there is a new mon session.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.cc
src/osd/OSD.h