]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/OSDMonitor: clean temps and upmaps in encode_pending, efficiently
authorSage Weil <sage@redhat.com>
Mon, 6 Aug 2018 17:54:55 +0000 (12:54 -0500)
committerSage Weil <sage@redhat.com>
Fri, 7 Sep 2018 22:11:18 +0000 (17:11 -0500)
commit1c2eb40651b306434bd3f126aa0c17f73ed61b62
tree755fae7f45970099b9086160c071c94fa29d0d0d
parentf793118656437d955554a6ccbffd2b612533ef85
mon/OSDMonitor: clean temps and upmaps in encode_pending, efficiently

- do not rebuild the next map when we already have it
- do this work in encode_pending, not create_pending, so we get bad
values before they are published.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/OSDMonitor.cc
src/osd/OSDMap.cc
src/osd/OSDMap.h
src/test/osd/TestOSDMap.cc