Merge pull request #19933 from qrGitHub/wip-rgw-useless-line4

rgw: drop redundant RGW_OP_STAT_OBJ check

Reviewed-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
Casey Bodley 2018-01-12 13:17:48 -05:00 committed by GitHub
commit 1fcc8e9b09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1744,11 +1744,6 @@ void RGWGetObj::execute()
start = ofs;
/* STAT ops don't need data, and do no i/o */
if (get_type() == RGW_OP_STAT_OBJ) {
return;
}
attr_iter = attrs.find(RGW_ATTR_MANIFEST);
op_ret = this->get_decrypt_filter(&decrypt, filter,
attr_iter != attrs.end() ? &(attr_iter->second) : nullptr);