request->set_caller_uid(uid);
request->set_caller_gid(gid);
- if (!mds_requests.empty())
- request->set_oldest_client_tid(mds_requests.begin()->first);
- else
- request->set_oldest_client_tid(tid); // this one is the oldest.
+ if (cct->_conf->client_inject_fixed_oldest_tid) {
+ ldout(cct, 20) << __func__ << " injecting fixed oldest_client_tid(1)" << dendl;
+ request->set_oldest_client_tid(1);
+ } else {
+ if (!mds_requests.empty())
+ request->set_oldest_client_tid(mds_requests.begin()->first);
+ else
+ request->set_oldest_client_tid(tid); // this one is the oldest.
+ }
// hack target mds?
if (use_mds >= 0)
OPTION(client_debug_inject_tick_delay, OPT_INT, 0) // delay the client tick for a number of seconds
OPTION(client_max_inline_size, OPT_U64, 4096)
OPTION(client_inject_release_failure, OPT_BOOL, false) // synthetic client bug for testing
+OPTION(client_inject_fixed_oldest_tid, OPT_BOOL, false) // synthetic client bug for testing
// note: the max amount of "in flight" dirty data is roughly (max - target)
OPTION(fuse_use_invalidate_cb, OPT_BOOL, false) // use fuse 2.8+ invalidate callback to keep page cache consistent
OPTION(fuse_allow_other, OPT_BOOL, true)