mirror of https://github.com/ceph/ceph
osd: rm all uses of the cast operator of md_config_cacher_t
as this interface is to be removed in the next commit. Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
This commit is contained in:
parent
3cd7d0226f
commit
71de8c0acc
|
@ -6006,7 +6006,7 @@ int PrimaryLogPG::do_osd_ops(OpContext *ctx, vector<OSDOp>& ops)
|
|||
object_info_t& oi = obs.oi;
|
||||
const hobject_t& soid = oi.soid;
|
||||
const bool skip_data_digest = osd->store->has_builtin_csum() &&
|
||||
osd->osd_skip_data_digest;
|
||||
*osd->osd_skip_data_digest;
|
||||
|
||||
PGTransaction* t = ctx->op_t.get();
|
||||
|
||||
|
@ -6069,9 +6069,9 @@ int PrimaryLogPG::do_osd_ops(OpContext *ctx, vector<OSDOp>& ops)
|
|||
// munge ZERO -> TRUNCATE? (don't munge to DELETE or we risk hosing attributes)
|
||||
if (op.op == CEPH_OSD_OP_ZERO &&
|
||||
obs.exists &&
|
||||
op.extent.offset < static_cast<Option::size_t>(osd->osd_max_object_size) &&
|
||||
op.extent.offset < *osd->osd_max_object_size &&
|
||||
op.extent.length >= 1 &&
|
||||
op.extent.length <= static_cast<Option::size_t>(osd->osd_max_object_size) &&
|
||||
op.extent.length <= *osd->osd_max_object_size &&
|
||||
op.extent.offset + op.extent.length >= oi.size) {
|
||||
if (op.extent.offset >= oi.size) {
|
||||
// no-op
|
||||
|
@ -6781,7 +6781,7 @@ int PrimaryLogPG::do_osd_ops(OpContext *ctx, vector<OSDOp>& ops)
|
|||
}
|
||||
result = check_offset_and_length(
|
||||
op.extent.offset, op.extent.length,
|
||||
static_cast<Option::size_t>(osd->osd_max_object_size), get_dpp());
|
||||
*osd->osd_max_object_size, get_dpp());
|
||||
if (result < 0)
|
||||
break;
|
||||
|
||||
|
@ -6838,7 +6838,7 @@ int PrimaryLogPG::do_osd_ops(OpContext *ctx, vector<OSDOp>& ops)
|
|||
}
|
||||
result = check_offset_and_length(
|
||||
0, op.extent.length,
|
||||
static_cast<Option::size_t>(osd->osd_max_object_size), get_dpp());
|
||||
*osd->osd_max_object_size, get_dpp());
|
||||
if (result < 0)
|
||||
break;
|
||||
|
||||
|
@ -6888,7 +6888,7 @@ int PrimaryLogPG::do_osd_ops(OpContext *ctx, vector<OSDOp>& ops)
|
|||
{ // zero
|
||||
result = check_offset_and_length(
|
||||
op.extent.offset, op.extent.length,
|
||||
static_cast<Option::size_t>(osd->osd_max_object_size), get_dpp());
|
||||
*osd->osd_max_object_size, get_dpp());
|
||||
if (result < 0)
|
||||
break;
|
||||
|
||||
|
@ -6953,7 +6953,7 @@ int PrimaryLogPG::do_osd_ops(OpContext *ctx, vector<OSDOp>& ops)
|
|||
|
||||
result = check_offset_and_length(
|
||||
op.extent.offset, op.extent.length,
|
||||
static_cast<Option::size_t>(osd->osd_max_object_size), get_dpp());
|
||||
*osd->osd_max_object_size, get_dpp());
|
||||
if (result < 0)
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue