]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/OSD: preallocate for _get_pgs/_get_pgids to avoid reallocate.
authorJianpeng Ma <jianpeng.ma@intel.com>
Fri, 7 Dec 2018 03:13:09 +0000 (11:13 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Fri, 7 Dec 2018 03:13:09 +0000 (11:13 +0800)
commit9c73dcbc98c9b7e1f5650bea9db829e10ec6dc75
treecca996773ac4c0428f01b22fc020dd3baa6d26c9
parentb03c2b4a17c6436f0d60c6b9d966e871ed89ed39
osd/OSD: preallocate for _get_pgs/_get_pgids to avoid reallocate.

num_pgs is the most accurate value fore reserve when call _get_pgs &
_get_pgids.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/osd/OSD.cc