]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
buffer: don't invalidate crc cache of new ptr before zeroing it 9414/head
authorPiotr Dałek <git@predictor.org.pl>
Tue, 31 May 2016 19:42:00 +0000 (21:42 +0200)
committerPiotr Dałek <git@predictor.org.pl>
Tue, 31 May 2016 19:42:00 +0000 (21:42 +0200)
When doing append_zero, we create new bufferptr and then zero it.
Don't invalidate internal crc cache, because at this point it's
empty anyway.

Signed-off-by: Piotr Dałek <git@predictor.org.pl>
src/common/buffer.cc

index 3557b3775d4f81471e91596c079443b171dd58a8..0438fd116e813bee97065dc0f07e03b9284367be 100644 (file)
@@ -1754,7 +1754,7 @@ static simple_spinlock_t buffer_debug_lock = SIMPLE_SPINLOCK_INITIALIZER;
   void buffer::list::append_zero(unsigned len)
   {
     ptr bp(len);
-    bp.zero();
+    bp.zero(false);
     append(std::move(bp));
   }