mirror of
https://github.com/postgres/postgres.git
synced 2025-04-24 10:47:04 +03:00
Fix erroneous choice of timeline variable, too
This commit is contained in:
parent
e774b7649c
commit
2f1692d213
@ -8175,7 +8175,7 @@ assign_xlog_sync_method(int new_sync_method, void *extra)
|
|||||||
ereport(PANIC,
|
ereport(PANIC,
|
||||||
(errcode_for_file_access(),
|
(errcode_for_file_access(),
|
||||||
errmsg("could not fsync log segment %s: %m",
|
errmsg("could not fsync log segment %s: %m",
|
||||||
XLogFileNameP(curFileTLI, openLogSegNo))));
|
XLogFileNameP(ThisTimeLineID, openLogSegNo))));
|
||||||
if (get_sync_bit(sync_method) != get_sync_bit(new_sync_method))
|
if (get_sync_bit(sync_method) != get_sync_bit(new_sync_method))
|
||||||
XLogFileClose();
|
XLogFileClose();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user