]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
server: avoid duplicated call to utime_t 9681/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 14 Jun 2016 11:59:41 +0000 (19:59 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 14 Jun 2016 11:59:41 +0000 (19:59 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/mds/Server.cc

index 0c014a422a7dd17a935bc95dd77e13903a5796f2..9c3aa0c4b0c1066019dbe46d188de71d30f176a0 100644 (file)
@@ -3495,7 +3495,7 @@ void Server::handle_client_readdir(MDRequestRef& mdr)
           << " complete=" << (int)complete << dendl;
 
   // bump popularity.  NOTE: this doesn't quite capture it.
-  mds->balancer->hit_dir(ceph_clock_now(g_ceph_context), dir, META_POP_IRD, -1, numfiles);
+  mds->balancer->hit_dir(now, dir, META_POP_IRD, -1, numfiles);
   
   // reply
   mdr->tracei = diri;