OPTION(rgw_nfs_lru_lane_hiwat, OPT_INT, 911)
OPTION(rgw_nfs_fhcache_partitions, OPT_INT, 3)
OPTION(rgw_nfs_fhcache_size, OPT_INT, 2017) /* 3*2017=6051 */
+OPTION(rgw_nfs_write_completion_interval_s, OPT_INT, 10) /* stateless (V3)
+ * commit
+ * delay */
OPTION(rgw_zone, OPT_STR, "") // zone name
OPTION(rgw_zone_root_pool, OPT_STR, ".rgw.root") // pool where zone specific info is stored
void RGWLibProcess::run()
{
+ /* write completion interval */
+ RGWLibFS::write_completion_interval_s =
+ cct->_conf->rgw_nfs_write_completion_interval_s;
+
/* start write timer */
RGWLibFS::write_timer.resume();
atomic<uint32_t> RGWLibFS::fs_inst;
+ uint32_t RGWLibFS::write_completion_interval_s = 10;
+
ceph::timer<ceph::mono_clock> RGWLibFS::write_timer{
ceph::construct_suspended};
/* start write timer */
f->write_req->timer_id =
RGWLibFS::write_timer.add_event(
- std::chrono::seconds(10), WriteCompletion(*this));
+ std::chrono::seconds(RGWLibFS::write_completion_interval_s),
+ WriteCompletion(*this));
}
}
}
RGWAccessKey key; // XXXX acc_key
static atomic<uint32_t> fs_inst;
+ static uint32_t write_completion_interval_s;
std::string fsid;
using lock_guard = std::lock_guard<std::mutex>;