From 268124e0f5b1dbd7ff038d6068bcd89d7a7e02c5 Mon Sep 17 00:00:00 2001 From: Mehdi Hosseini <116847813+shosseinimotlagh@users.noreply.github.com> Date: Thu, 25 Jul 2024 13:08:37 -0700 Subject: [PATCH] Fix link buf (#473) --- conanfile.py | 2 +- src/lib/index/wb_cache.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conanfile.py b/conanfile.py index 27bcbf5e0..995c6e87c 100644 --- a/conanfile.py +++ b/conanfile.py @@ -9,7 +9,7 @@ class HomestoreConan(ConanFile): name = "homestore" - version = "6.4.28" + version = "6.4.29" homepage = "https://github.com/eBay/Homestore" description = "HomeStore Storage Engine" diff --git a/src/lib/index/wb_cache.cpp b/src/lib/index/wb_cache.cpp index 013eb0da5..6bbb6d809 100644 --- a/src/lib/index/wb_cache.cpp +++ b/src/lib/index/wb_cache.cpp @@ -276,7 +276,7 @@ void IndexWBCache::link_buf(IndexBufferPtr const& up_buf, IndexBufferPtr const& // to link it with up_buffer's up_buffer. In other words, there should never a link between down and up buffers // created in current generation (cp). In real terms, it means all new buffers can be flushed independently to // each other and dependency is needed only for the buffers created in previous cps. - if ((down_buf->m_created_cp_id == icp_ctx->id()) && (up_buf->m_created_cp_id == icp_ctx->id())) { + if (up_buf->m_created_cp_id == icp_ctx->id()) { real_up_buf = up_buf->m_up_buffer; HS_DBG_ASSERT(real_up_buf, "Up buffer is newly created in this cp, but it doesn't have its own up_buffer, its not expected");