rgw/rgw_admin.cc: remove double checks from get_cmd()

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
rgw_json_enc.cc: use static_cast instead of C-Style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
OSD: flush pg osr on shutdown prior to put()

Fixes: #4538
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Merge pull request #164 from dalgaaf/wip-da-fix-misc-1

some SCA related fixes
Merge git://github.com/ceph/ceph