Content-Length: 259589 | pFad | http://github.com/postgrespro/postgres_cluster/commit/20fbf25533763c8c78c9c668b718d831236fb111

9D Fix harmless thinko in dsa.c. · postgrespro/postgres_cluster@20fbf25 · GitHub
Skip to content

Commit 20fbf25

Browse files
committed
Fix harmless thinko in dsa.c.
Commit 16be2fd added DSA_ALLOC_HUGE, DSA_ALLOC_ZERO and DSA_ALLOC_NO_OOM which have the same numerical values and meanings as the similarly named MCXT_... macros. In one place we accidentally used MCXT_ALLOC_NO_OOM when DSA_ALLOC_NO_OOM is wanted, so tidy that up. Author: Thomas Munro Discussion: http://postgr.es/m/CAEepm=2AimHxVkkxnMfQvbZMkXy0uKbVa0-D38c5-qwrCm4CMQ@mail.gmail.com Backpatch: 10, where dsa was introduced.
1 parent 0cdc3e4 commit 20fbf25

File tree

1 file changed

+1
-1
lines changed
  • src/backend/utils/mmgr

1 file changed

+1
-1
lines changed

src/backend/utils/mmgr/dsa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ dsa_allocate_extended(dsa_area *area, Size size, int flags)
707707
dsa_free(area, span_pointer);
708708

709709
/* Raise error unless asked not to. */
710-
if ((flags & MCXT_ALLOC_NO_OOM) == 0)
710+
if ((flags & DSA_ALLOC_NO_OOM) == 0)
711711
ereport(ERROR,
712712
(errcode(ERRCODE_OUT_OF_MEMORY),
713713
errmsg("out of memory"),

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/20fbf25533763c8c78c9c668b718d831236fb111

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy