Skip to content

Commit

Permalink
osd: PrimaryLogPG::do_osd_ops() uses md_config_cacher_t.
Browse files Browse the repository at this point in the history
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
  • Loading branch information
rzarzynski committed Feb 5, 2018
1 parent 8aa8028 commit 651ae84
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/osd/PrimaryLogPG.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "Session.h"
#include "objclass/objclass.h"

#include "common/config_cacher.h"
#include "common/errno.h"
#include "common/scrub_types.h"
#include "common/perf_counters.h"
Expand Down Expand Up @@ -5493,9 +5494,12 @@ int PrimaryLogPG::do_osd_ops(OpContext *ctx, vector<OSDOp>& ops)
ObjectState& obs = ctx->new_obs;
object_info_t& oi = obs.oi;
const hobject_t& soid = oi.soid;
bool skip_data_digest = osd->store->has_builtin_csum() &&
cct->_conf->osd_skip_data_digest;
const uint64_t osd_max_object_size = cct->_conf->osd_max_object_size;
const static md_config_cacher_t<uint64_t> osd_max_object_size(
*g_conf, "osd_max_object_size");
const static md_config_cacher_t<bool> conf_data_digest(
*g_conf, "osd_skip_data_digest");
const bool skip_data_digest = osd->store->has_builtin_csum() &&
conf_data_digest;

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

Expand Down

0 comments on commit 651ae84

Please sign in to comment.