mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +03:00
Use HASH_BLOBS for xidhash.
This caused BufFile errors on buildfarm member sungazer, and SIGSEGV was possible. Conditions for reaching those symptoms were more frequent on big-endian systems. Discussion: https://postgr.es/m/20201129214441.GA691200@rfd.leadboat.com
This commit is contained in:
@@ -776,7 +776,7 @@ apply_handle_stream_start(StringInfo s)
|
||||
hash_ctl.entrysize = sizeof(StreamXidHash);
|
||||
hash_ctl.hcxt = ApplyContext;
|
||||
xidhash = hash_create("StreamXidHash", 1024, &hash_ctl,
|
||||
HASH_ELEM | HASH_CONTEXT);
|
||||
HASH_ELEM | HASH_BLOBS | HASH_CONTEXT);
|
||||
}
|
||||
|
||||
/* open the spool file for this transaction */
|
||||
|
Reference in New Issue
Block a user