]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: fix filestore perf stats update
authorSage Weil <sage@inktank.com>
Tue, 17 Jun 2014 20:33:14 +0000 (13:33 -0700)
committerSage Weil <sage@inktank.com>
Tue, 17 Jun 2014 21:47:39 +0000 (14:47 -0700)
Update the struct we are about to send, not the (unlocked!) one we will
send the next time around.

Backport: firefly, dumpling
Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/OSD.cc

index feb7e51a7f2d36d500e7f03ab2cdf4de1d69ef40..953015bbc1b4fb4fb4da83563a2149595023a667 100644 (file)
@@ -4090,7 +4090,7 @@ void OSD::send_pg_stats(const utime_t &now)
   osd_stat_t cur_stat = osd_stat;
   stat_lock.Unlock();
 
-  osd_stat.fs_perf_stat = store->get_cur_stats();
+  cur_stat.fs_perf_stat = store->get_cur_stats();
    
   pg_stat_queue_lock.Lock();