Skip to content

Commit

Permalink
osd: Even when we are distrust data_digest, go ahead and set it when …
Browse files Browse the repository at this point in the history
…we can

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 3b72d1a)

Conflicts:
	src/osd/PrimaryLogPG.cc (trivial)
  • Loading branch information
dzafman committed Jul 26, 2018
1 parent 3773e77 commit b10549e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/osd/PrimaryLogPG.cc
Expand Up @@ -5623,8 +5623,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) ||
g_conf->osd_distrust_data_digest;
osd->store->has_builtin_csum() && osd->osd_skip_data_digest;

PGTransaction* t = ctx->op_t.get();

Expand Down

0 comments on commit b10549e

Please sign in to comment.