git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: a268a51) | patch
simplehash: preserve consistency in case of OOM.
2023年11月17日 21:58:16 +0000 (13:58 -0800)
2023年11月17日 21:58:16 +0000 (13:58 -0800)
commit b282fa88df78a05643d2df84a2b8e81cd9c1705d
simplehash: preserve consistency in case of OOM.

Compute size first, then allocate, then update the structure.

Previously, an out-of-memory when growing could leave the hashtable in
an inconsistent state.

Discussion: https://postgr.es/m/20231117201334.eyb542qr5yk4gilq@awork3.anarazel.de
Reviewed-by: Andres Freund
Reviewed-by: Gurjeet Singh
src/include/lib/simplehash.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /