]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: go back to compact_map for replicas
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 12 Sep 2017 21:29:49 +0000 (14:29 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 14 Sep 2017 03:22:06 +0000 (20:22 -0700)
commitd50f2c735ac40b9ccfbd8d3423fd817f76de9c3c
tree5f7fedb0c0d2fc2ab0ae53a7334d8a2cfeb1c048
parent2ef222a58c3801eaac5a6d52dda2de1ffe37407b
mds: go back to compact_map for replicas

Zheng observed that an alloc_ptr doesn't really work in this case since any
call to get_replicas() will cause the map to be allocated, nullifying the
benefit. Use a compact_map until a better solution can be written. (This means
that the map will be allocated outside the mempool.)

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 5d67b5cc57ac803e60c2921f554cd0507ed4848e)
src/mds/MDSCacheObject.h