From 7dd792e7ef63ac05a088a3bf7176048358a5c64d Mon Sep 17 00:00:00 2001 From: luohongbin <7558174+luohongbins@user.noreply.gitee.com> Date: Wed, 19 Aug 2020 19:30:24 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90fixbug=E3=80=91bypass=20indexonlyscan?= =?UTF-8?q?=20releasebuffer=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gausskernel/runtime/executor/opfusion_scan.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/gausskernel/runtime/executor/opfusion_scan.cpp b/src/gausskernel/runtime/executor/opfusion_scan.cpp index 2d0ce20d0..12f19808b 100644 --- a/src/gausskernel/runtime/executor/opfusion_scan.cpp +++ b/src/gausskernel/runtime/executor/opfusion_scan.cpp @@ -566,9 +566,6 @@ void IndexOnlyScanFusion::Init(long max_rows) m_scandesc = (AbsIdxScanDesc)abs_idx_beginscan(m_rel, m_index, GetActiveSnapshot(), m_keyNum, 0, scanstate); // add scanstate pointer ? if (PointerIsValid(m_scandesc)) { - if (m_VMBuffer != InvalidBuffer) { - ReleaseBuffer(m_VMBuffer); - } m_VMBuffer = InvalidBuffer; IndexScanDesc indexdesc = GetIndexScanDesc(m_scandesc); indexdesc->xs_want_itup = true;