]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osdc/Journaler: fix memory leak in Journaler::_issue_read() 15776/head
authorYan, Zheng <zyan@redhat.com>
Tue, 20 Jun 2017 10:51:34 +0000 (18:51 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 20 Jun 2017 11:00:38 +0000 (19:00 +0800)
commit146383a21b932048030982f1c44d39781879ab41
treea2c5b99fc4dddfa2dfb682ae1c73948c8a0f9240
parentd85f4bb4cadbc613cbfbaa5fa2c05e33ac1d22ad
osdc/Journaler: fix memory leak in Journaler::_issue_read()

Contexts executed by _finish_flush() may call _issue_read(),
_issue_read() may add new context to tail of waitfor_safe list.
So _finish_flush() should first remove contexts from waitfor_safe,
then execute the contexts.

Fixes: http://tracker.ceph.com/issues/20338
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/osdc/Journaler.cc