mirror of
https://gitee.com/he3db/he3pg.git
synced 2024-12-02 04:07:34 +08:00
slock
This commit is contained in:
parent
83ba25ac3d
commit
cc872c74e4
@ -3814,17 +3814,17 @@ mustflush:
|
||||
int bRelativeOffset = 0;
|
||||
int eRelativeOffset = 0;
|
||||
|
||||
SpinLockAcquire(&XLogCtl->info_lck);
|
||||
XLogParralFlush flushInfo = XLogCtl->LogFlush;
|
||||
SpinLockRelease(&XLogCtl->info_lck);
|
||||
// SpinLockAcquire(&XLogCtl->info_lck);
|
||||
// XLogParralFlush flushInfo = XLogCtl->LogFlush;
|
||||
// SpinLockRelease(&XLogCtl->info_lck);
|
||||
|
||||
// printf("end flush wals, begin %d, curLoc %d, WriteRqst.Write %ld\n", flushInfo.begin, curLoc, WriteRqst.Write);
|
||||
while (flushInfo.begin < curLoc)
|
||||
while (XlogCtl.LogFlush.begin < curLoc)
|
||||
{
|
||||
pg_usleep(20L);
|
||||
SpinLockAcquire(&XLogCtl->info_lck);
|
||||
flushInfo = XLogCtl->LogFlush;
|
||||
SpinLockRelease(&XLogCtl->info_lck);
|
||||
// SpinLockAcquire(&XLogCtl->info_lck);
|
||||
// flushInfo = XLogCtl->LogFlush;
|
||||
// SpinLockRelease(&XLogCtl->info_lck);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user