mirror of
https://gitee.com/he3db/he3pg.git
synced 2024-11-29 18:58:35 +08:00
commit
5c92c23dcd
@ -405,8 +405,9 @@ CleanLogIndexMain(int argc, char *argv[])
|
||||
}
|
||||
if (PrevPushPoint != 0) {
|
||||
XLogRecPtr lastReplPtr = GetXLogReplayRecPtr(NULL);
|
||||
// elog(LOG, "deal page from %x to %x", PrevPushPoint, lastReplPtr);
|
||||
TagNode *tagList = GetBufTagByLsnRange(PrevPushPoint,lastReplPtr-1);
|
||||
if (tagList->next != NULL && tagList->tag.lsn > PrevPushPoint) {
|
||||
if (tagList->next != NULL && tagList->tag.lsn >= PrevPushPoint) {
|
||||
LastPushPoint = tagList->tag.lsn;
|
||||
TagNode *next = tagList->next;
|
||||
int pageNum = 0;
|
||||
|
@ -592,8 +592,12 @@ TagNode *GetBufTagByLsnRange(XLogRecPtr start_lsn, XLogRecPtr end_lsn)
|
||||
XLogRecPtr page_max_lsn;
|
||||
|
||||
// Prevent metadata changes during discovery.
|
||||
// TODO change to Lightweight Lock
|
||||
// change to Lightweight Lock
|
||||
head_node = InitTagNode();
|
||||
if (end_lsn < start_lsn)
|
||||
{
|
||||
return head_node;
|
||||
}
|
||||
LWLockAcquire(LogIndexMemListLock,LW_SHARED);
|
||||
tbl_index = log_index_mem_list->table_start_index;
|
||||
while(tbl_index != log_index_mem_list->active_table_index)
|
||||
|
Loading…
Reference in New Issue
Block a user