You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-01 00:25:06 +02:00
Set WAL long header flag in test function missed in e938a892
.
This was missed because the unit tests were reusing a buffer without resetting it to zero, so this flag ended up still set when the test function was called. This was not a live issue since it only expressed in tests and this code is not used in master yet.
This commit is contained in:
@ -178,6 +178,7 @@ Create a WAL file file for testing
|
||||
pgInterfaceWalTest##version(PgWal pgWal, unsigned char *buffer) \
|
||||
{ \
|
||||
((XLogLongPageHeaderData *)buffer)->std.xlp_magic = XLOG_PAGE_MAGIC; \
|
||||
((XLogLongPageHeaderData *)buffer)->std.xlp_info = XLP_LONG_HEADER; \
|
||||
((XLogLongPageHeaderData *)buffer)->xlp_sysid = pgWal.systemId; \
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user