]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
server: fix potential access violation 9647/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Sun, 12 Jun 2016 02:27:12 +0000 (10:27 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Sun, 12 Jun 2016 02:37:57 +0000 (10:37 +0800)
commit4450fb18bb473aee8191d7954fe1e5a4206e5de9
tree4b96f1e3ef3df0b07b3ce4edd31ea09a909971b0
parentfb2667f3e15a17d1e584864fc6dd80c3cbcb1059
server: fix potential access violation

The mdcache->request_start() method may lose the forward race
against a slave and thus may either drop the last reference of the
passed in message or push the message into the waiting_for_finish
list for a later retry.

In either case we shall stall and exit, otherwise we'll access
violation especifally for the former case(as we drop the last
reference of "req" and it shall be destructed by now).

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/mds/Server.cc