return;
}
- ceph::mono_time now = ceph::mono_clock::now();
+ ceph::coarse_mono_time now = ceph::coarse_mono_clock::now();
ldout(cct, 10) << __func__ << " " << info->linger_id << " now " << now
<< dendl;
logger->inc(l_osdc_linger_ping);
}
-void Objecter::_linger_ping(LingerOp *info, int r, mono_time sent,
+void Objecter::_linger_ping(LingerOp *info, int r, ceph::coarse_mono_time sent,
uint32_t register_gen)
{
LingerOp::unique_lock l(info->watch_lock);
{
LingerOp::shared_lock l(info->watch_lock);
- mono_time stamp = info->watch_valid_thru;
+ ceph::coarse_mono_time stamp = info->watch_valid_thru;
if (!info->watch_pending_async.empty())
stamp = MIN(info->watch_valid_thru, info->watch_pending_async.front());
- auto age = mono_clock::now() - stamp;
+ auto age = ceph::coarse_mono_clock::now() - stamp;
ldout(cct, 10) << __func__ << " " << info->linger_id
<< " err " << info->last_error
if (info->target.base_oloc.key == oid)
info->target.base_oloc.key.clear();
info->target.flags = flags;
- info->watch_valid_thru = mono_clock::now();
+ info->watch_valid_thru = ceph::coarse_mono_clock::now();
unique_lock l(rwlock);
// look for laggy requests
- auto cutoff = ceph::mono_clock::now();
+ auto cutoff = ceph::coarse_mono_clock::now();
cutoff -= ceph::make_timespan(cct->_conf->objecter_timeout); // timeout
unsigned laggy_ops = 0;
flags |= CEPH_OSD_FLAG_FULL_FORCE;
op->target.paused = false;
- op->stamp = ceph::mono_clock::now();
+ op->stamp = ceph::coarse_mono_clock::now();
hobject_t hobj = op->target.get_hobj();
MOSDOp *m = new MOSDOp(client_inc, op->tid,
if (op->snapid) m->snapid = op->snapid;
if (op->crush_rule) m->crush_rule = op->crush_rule;
monc->send_mon_message(m);
- op->last_submit = ceph::mono_clock::now();
+ op->last_submit = ceph::coarse_mono_clock::now();
logger->inc(l_osdc_poolop_send);
}
monc->send_mon_message(new MGetPoolStats(monc->get_fsid(), op->tid,
op->pools,
last_seen_pgmap_version));
- op->last_submit = ceph::mono_clock::now();
+ op->last_submit = ceph::coarse_mono_clock::now();
logger->inc(l_osdc_poolstat_send);
}
monc->send_mon_message(new MStatfs(monc->get_fsid(), op->tid,
op->data_pool,
last_seen_pgmap_version));
- op->last_submit = ceph::mono_clock::now();
+ op->last_submit = ceph::coarse_mono_clock::now();
logger->inc(l_osdc_statfs_send);
}
using unique_lock = std::unique_lock<decltype(rwlock)>;
using shared_lock = boost::shared_lock<decltype(rwlock)>;
using shunique_lock = ceph::shunique_lock<decltype(rwlock)>;
- ceph::timer<ceph::mono_clock> timer;
+ ceph::timer<ceph::coarse_mono_clock> timer;
PerfCounters *logger;
version_t *objver;
epoch_t *reply_epoch;
- ceph::mono_time stamp;
+ ceph::coarse_mono_time stamp;
epoch_t map_dne_bound;
Context *onfinish;
uint64_t ontimeout;
- ceph::mono_time last_submit;
+ ceph::coarse_mono_time last_submit;
};
struct StatfsOp {
Context *onfinish;
uint64_t ontimeout;
- ceph::mono_time last_submit;
+ ceph::coarse_mono_time last_submit;
};
struct PoolOp {
snapid_t snapid;
bufferlist *blp;
- ceph::mono_time last_submit;
+ ceph::coarse_mono_time last_submit;
PoolOp() : tid(0), pool(0), onfinish(NULL), ontimeout(0), pool_op(0),
auid(0), crush_rule(0), snapid(0), blp(NULL) {}
};
Context *onfinish = nullptr;
uint64_t ontimeout = 0;
- ceph::mono_time last_submit;
+ ceph::coarse_mono_time last_submit;
CommandOp(
int target_osd,
version_t *pobjver;
bool is_watch;
- ceph::mono_time watch_valid_thru; ///< send time for last acked ping
+ ceph::coarse_mono_time watch_valid_thru; ///< send time for last acked ping
int last_error; ///< error from last failed ping|reconnect, if any
boost::shared_mutex watch_lock;
using lock_guard = std::unique_lock<decltype(watch_lock)>;
// queue of pending async operations, with the timestamp of
// when they were queued.
- list<ceph::mono_time> watch_pending_async;
+ list<ceph::coarse_mono_time> watch_pending_async;
uint32_t register_gen;
bool registered;
void _queued_async() {
// watch_lock ust be locked unique
- watch_pending_async.push_back(ceph::mono_clock::now());
+ watch_pending_async.push_back(ceph::coarse_mono_clock::now());
}
void finished_async() {
unique_lock l(watch_lock);
struct C_Linger_Ping : public Context {
Objecter *objecter;
LingerOp *info;
- ceph::mono_time sent;
+ ceph::coarse_mono_time sent;
uint32_t register_gen;
C_Linger_Ping(Objecter *o, LingerOp *l)
: objecter(o), info(l), register_gen(info->register_gen) {
void _linger_commit(LingerOp *info, int r, bufferlist& outbl);
void _linger_reconnect(LingerOp *info, int r);
void _send_linger_ping(LingerOp *info);
- void _linger_ping(LingerOp *info, int r, ceph::mono_time sent,
+ void _linger_ping(LingerOp *info, int r, ceph::coarse_mono_time sent,
uint32_t register_gen);
int _normalize_watch_error(int r);