summaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.source
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2025-10-08 14:34:30 -0400
committerAndres Freund <andres@anarazel.de>2025-10-08 14:34:30 -0400
commit2a2e1b470b9b4e9c7d76bc227db02a2efbb57473 (patch)
treebe39d78176ab1a52aa283d96dacdf6f61652a71c /src/tutorial/funcs.source
parent3c2b97b29ee33d5619779fd10e06eee07d4700da (diff)
bufmgr: Fix signedness of mask variable in BufferSync()
BM_PERMANENT is defined as 1U<<31, which is a negative number when interpreted as a signed integer. Unfortunately the mask variable in BufferSync() was signed. This has been wrong for a long time, but failed to fail, due to integer conversion rules. However, in an upcoming patch the width of the state variable will be increased, with the wrong signedness leading to never flushing permanent buffers - luckily caught in a test. It seems better to fix this separately, instead of doing so as part of a large, otherwise mechanical, patch. Reviewed-by: Matthias van de Meent <boekewurm+postgres@gmail.com> Discussion: https://postgr.es/m/fvfmkr5kk4nyex56ejgxj3uzi63isfxovp2biecb4bspbjrze7@az2pljabhnff
Diffstat (limited to 'src/tutorial/funcs.source')
0 files changed, 0 insertions, 0 deletions