]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: avoid reset cache_private if we haven't to
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 19 Sep 2016 02:24:46 +0000 (10:24 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 19 Sep 2016 02:24:46 +0000 (10:24 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueStore.cc

index 3045e201126693a9faf4744f2c46634bb5f1a448..ea99f551e26c01c286bd1392d9ebdbc9b7c82af6 100644 (file)
@@ -656,10 +656,10 @@ void BlueStore::TwoQCache::_add_buffer(Buffer *b, int level, Buffer *near)
       buffer_warm_in.push_front(*b);
       break;
     case BUFFER_WARM_OUT:
+      b->cache_private = BUFFER_HOT;
       // move to hot.  fall-thru
     case BUFFER_HOT:
       dout(20) << __func__ << " move to hot " << *b << dendl;
-      b->cache_private = BUFFER_HOT;
       buffer_hot.push_front(*b);
       break;
     default: