{"push_id":1420951296,"size":2,"distinct_size":2,"ref":"refs/heads/wip-17762","head":"d305cc51b18cbf4b2757bbacb5d43324461306a9","before":"3d48749e0ec9e2635fc449b94cf07f28fe6b4cc7","commits":[{"sha":"cb1cda96713b2ec0f6418c4cbe3d964c2020729c","author":{"name":"Kefu Chai","email":"b1a573d2d314b4071b008c785c81b68303acbb72@redhat.com"},"message":"common,test: g_ceph_context->put() upon return\n\nprior to this change, global_init() could create a new CephContext\nand assign it to g_ceph_context. it's our responsibilty to release\nthe CephContext explicitly using cct->put() before the application\nquits. but sometimes, we fail to do so.\n\nin this change, global_init() will return an intrusive_ptr<CephContext>,\nwhich calls `g_ceph_context->put()` in its dtor. this ensures that\nthe CephContext is always destroyed before main() returns. so the\nlog is flushed before _log_exp_length is destroyed.\n\nthere are two cases where global_pre_init() is called directly.\n- ceph_conf.cc: g_ceph_context->put() will be called by an intrusive_ptr<>\n  deleter.\n- rgw_main.cc: global_init() is called later on on the success code\n  path, so it will be taken care of.\n\nFixes: http://tracker.ceph.com/issues/17762\nSigned-off-by: Kefu Chai <kchai@redhat.com>","distinct":true,"url":"https://api.github.com/repos/tchaikov/ceph/commits/cb1cda96713b2ec0f6418c4cbe3d964c2020729c"},{"sha":"d305cc51b18cbf4b2757bbacb5d43324461306a9","author":{"name":"Kefu Chai","email":"b1a573d2d314b4071b008c785c81b68303acbb72@redhat.com"},"message":"crushtool: do not release g_ceph_context at exit\n\nit is but a work around of occasionally timeout.\n\nSigned-off-by: Kefu Chai <kchai@redhat.com>","distinct":true,"url":"https://api.github.com/repos/tchaikov/ceph/commits/d305cc51b18cbf4b2757bbacb5d43324461306a9"}]}
{"actor":{"display_login":"tchaikov"}}