]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/pg: fix dirtying info without correctly setting dirty_info field
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 23 Mar 2016 08:00:56 +0000 (16:00 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 23 Mar 2016 08:00:56 +0000 (16:00 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/PG.cc

index 15dc0af1d913ce3cfea4021f74eb918f6a530490..7eabe3b8d10892c7f021895ba0ee2ac8b13c6793 100644 (file)
@@ -713,8 +713,10 @@ void PG::generate_past_intervals()
   epoch_t cur_epoch, end_epoch;
   if (!_calc_past_interval_range(&cur_epoch, &end_epoch,
       osd->get_superblock().oldest_map)) {
-    if (info.history.same_interval_since == 0)
+    if (info.history.same_interval_since == 0) {
       info.history.same_interval_since = end_epoch;
+      dirty_info = true;
+    }
     return;
   }