mirror of
https://gitee.com/he3db/he3pg.git
synced 2024-12-02 04:07:34 +08:00
add DelRangeWals api
Signed-off-by: shipixian <shipixian_yewu@cmss.chinamobile.com>
This commit is contained in:
parent
41625f37ac
commit
801bd35ee7
@ -683,7 +683,7 @@ void mdread(SMgrRelation reln, ForkNumber forknum, BlockNumber blocknum,
|
||||
pageKey.blkNo = blocknum;
|
||||
pageKey.pageLsn = PageGetLSN(buffer);
|
||||
pageKey.replyLsn = 0;
|
||||
ReceivePageFromDataBuffer(&pageKey, (uin8_t *)buffer);
|
||||
ReceivePageFromDataBuffer(&pageKey, (uint8_t *)buffer);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -10,6 +10,7 @@
|
||||
#ifndef BACKEND_STATUS_H
|
||||
#define BACKEND_STATUS_H
|
||||
|
||||
#include "access/xlogdefs.h"
|
||||
#include "datatype/timestamp.h"
|
||||
#include "libpq/pqcomm.h"
|
||||
#include "miscadmin.h" /* for BackendType */
|
||||
|
@ -80,6 +80,7 @@ extern Bufrd ReadWalsByPage(uint32_t dbid,
|
||||
extern void InsertConsistToKV(uint64_t lsn);
|
||||
extern uint64_t GetConsistLsn(uint64_t lsn);
|
||||
extern void DelConsistLsns(uint64_t lsn);
|
||||
extern void DelRangeWals(uint32_t timeline, uint64_t startPtr,uint64_t endPtr);
|
||||
//extern void ReceivePageFromDataBuffer(PageKey *pk, uint8_t *buffer); //when evict one page out databuffer, we should call this to store the page.
|
||||
extern uint8_t EvictOnePageOutOfMemory(PageKey pageKey, char *value);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user