]> git.apps.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>
Wed, 25 Jun 2014 17:53:11 +0000 (10:53 -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>
(cherry picked from commit 4afffb4a10a0bbf7f2018ef3ed6b167c7921e46b)

src/osd/OSD.cc

index 018a4d987e7d71e27be0f3734c7a8afb1db0e281..608b188a7e0d5baa83b226b00b008b557e416f60 100644 (file)
@@ -3977,7 +3977,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();