]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
src/msg/dpdk: reserve funcs capacity to avoid reallocation
authorChunsong Feng <fengchunsong@huawei.com>
Wed, 13 Oct 2021 03:55:08 +0000 (03:55 +0000)
committerChunsong Feng <fengchunsong@huawei.com>
Thu, 14 Oct 2021 09:55:05 +0000 (09:55 +0000)
commitf696c365a2e8d4c6d46a0a104751754da182ac7c
tree1033ad14255d5d175da0c047470e588e3e33c640
parent86ec66a9b5cb9f59eb25a58dfa7fd21b592480e9
src/msg/dpdk: reserve funcs capacity to avoid reallocation

When a new vector is added larger than then current vector capacity,
it reallocates space. lamda function accesses the previous adress will
cause a segment fault. Therefore, reserve sufficient funcs space to
avoid reallocation.

Fixes: https://tracker.ceph.com/issues/52907
Signed-off-by: Chunsong Feng <fengchunsong@huawei.com>
src/msg/async/dpdk/DPDKStack.h