Signed-off-by: Sage Weil <sage@inktank.com>
// assign a unique tid
ceph_tid_t tid = ++last_tid;
request->set_tid(tid);
+
+ // and timestamp
+ request->op_stamp = ceph_clock_now(NULL);
+
// make note
mds_requests[tid] = request->get();
if (uid < 0) {
{
MClientRequest *req = new MClientRequest(request->get_op());
req->set_tid(request->tid);
+ req->set_stamp(request->op_stamp);
memcpy(&req->head, &request->head, sizeof(ceph_mds_request_head));
// if the filepath's haven't been set, set them!
Dentry *_old_dentry; //associated with path2
public:
uint64_t tid;
+ utime_t op_stamp;
ceph_mds_request_head head;
filepath path, path2;
bufferlist data;
Inode *target;
- MetaRequest(int op) :
+ MetaRequest(int op) :
_inode(NULL), _old_inode(NULL), _other_inode(NULL),
_dentry(NULL), _old_dentry(NULL),
tid(0),