]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix the missing return value of init_watch 9822/head
authorYan Jun <yan.jun8@zte.com.cn>
Mon, 20 Jun 2016 15:34:52 +0000 (23:34 +0800)
committerYan Jun <yan.jun8@zte.com.cn>
Mon, 20 Jun 2016 15:34:52 +0000 (23:34 +0800)
commitdddf771d383a448addfe81f0d9b8ee6f46512f6d
tree94b6aa366523bdd09db2db79d6fb393e3b2bc338
parent334ca8cb26fe2a75cd1890eef408d25d5b8565ab
rgw: fix the missing return value of init_watch

we should return the negative error number if "ioctx_create" creates "control_pool_ctx" failed. otherwise, it will run into exception:

    r = control_pool_ctx.create(notify_oid, false);
    if (r < 0 && r != -EEXIST)
      return r;

Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
src/rgw/rgw_rados.cc