mirror of
https://gitee.com/he3db/he3pg.git
synced 2024-12-03 12:47:34 +08:00
hot data precache fix compile problem
This commit is contained in:
parent
7c34503e33
commit
6dc26f4fc2
@ -82,7 +82,7 @@ BitmapHeapNext(BitmapHeapScanState *node)
|
||||
ParallelBitmapHeapState *pstate = node->pstate;
|
||||
dsa_area *dsa = node->ss.ps.state->es_query_dsa;
|
||||
|
||||
preCacheIndexNode = ((BitmapIndexScanState *)((PlanState *)(node))->lefttree)->biss_ScanDesc->indexRelation->rd_node->relNode;
|
||||
preCacheIndexNode = ((BitmapIndexScanState *)((PlanState *)(node))->lefttree)->biss_ScanDesc->indexRelation->rd_node.relNode;
|
||||
|
||||
/*
|
||||
* extract necessary information from index scan node
|
||||
|
@ -88,7 +88,7 @@ IndexNext(IndexScanState *node)
|
||||
TupleTableSlot *slot;
|
||||
|
||||
/* set preCacheIndexNode */
|
||||
preCacheIndexNode = node->iss_RelationDesc->rd_node->relNode;
|
||||
preCacheIndexNode = node->iss_RelationDesc->rd_node.relNode;
|
||||
|
||||
/*
|
||||
* extract necessary information from index scan node
|
||||
|
@ -792,10 +792,10 @@ ReadBufferExtended(Relation reln, ForkNumber forkNum, BlockNumber blockNum,
|
||||
*/
|
||||
pgstat_count_buffer_read(reln);
|
||||
/* precache index */
|
||||
if (isPreCacheIndex && preCacheIndexNode == reln->rd_node->relNode)
|
||||
if (isPreCacheIndex && preCacheIndexNode == reln->rd_node.relNode)
|
||||
{
|
||||
BlockNumber precacheblocks;
|
||||
precacheblocks = smgrnblocks(eln->rd_smgr, forkNum);
|
||||
precacheblocks = smgrnblocks(reln->rd_smgr, forkNum);
|
||||
for(BlockNumber i=0; i < precacheblocks; i++)
|
||||
{
|
||||
ReadBuffer_common(reln->rd_smgr, reln->rd_rel->relpersistence, forkNum, i, mode, strategy, &hit);
|
||||
@ -934,7 +934,7 @@ ReadBuffer_common(SMgrRelation smgr, char relpersistence, ForkNumber forkNum,
|
||||
{
|
||||
if (isPreCacheIndex)
|
||||
{
|
||||
if (preCacheIndexNode == bufHdr->tag->rnode->relNode)
|
||||
if (preCacheIndexNode == bufHdr->tag.rnode.relNode)
|
||||
{
|
||||
bufHdr->isPreCacheEscape=true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user