aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/rtree/rtproc.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1998-01-05 03:35:55 +0000
committerBruce Momjian <bruce@momjian.us>1998-01-05 03:35:55 +0000
commit0d9fc5afd6eda651d2ef0a4776e08f02d32a96de (patch)
treec9f5ac32c61569ba21fc66cf28d383e3972d2199 /src/backend/access/rtree/rtproc.c
parent0af9137f14f46a0affba6e57343a76a1e832172f (diff)
downloadpostgresql-0d9fc5afd6eda651d2ef0a4776e08f02d32a96de.tar.gz
postgresql-0d9fc5afd6eda651d2ef0a4776e08f02d32a96de.zip
Change elog(WARN) to elog(ERROR) and elog(ABORT).
Diffstat (limited to 'src/backend/access/rtree/rtproc.c')
-rw-r--r--src/backend/access/rtree/rtproc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/access/rtree/rtproc.c b/src/backend/access/rtree/rtproc.c
index d8c4ad42c34..a78ea22892a 100644
--- a/src/backend/access/rtree/rtproc.c
+++ b/src/backend/access/rtree/rtproc.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtproc.c,v 1.12 1997/09/18 20:19:56 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtproc.c,v 1.13 1998/01/05 03:29:59 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -29,7 +29,7 @@ rt_box_union(BOX *a, BOX *b)
BOX *n;
if ((n = (BOX *) palloc(sizeof(*n))) == (BOX *) NULL)
- elog(WARN, "Cannot allocate box for union");
+ elog(ABORT, "Cannot allocate box for union");
n->high.x = Max(a->high.x, b->high.x);
n->high.y = Max(a->high.y, b->high.y);
@@ -45,7 +45,7 @@ rt_box_inter(BOX *a, BOX *b)
BOX *n;
if ((n = (BOX *) palloc(sizeof(*n))) == (BOX *) NULL)
- elog(WARN, "Cannot allocate box for union");
+ elog(ABORT, "Cannot allocate box for union");
n->high.x = Min(a->high.x, b->high.x);
n->high.y = Min(a->high.y, b->high.y);
@@ -94,7 +94,7 @@ rt_poly_union(POLYGON *a, POLYGON *b)
p = (POLYGON *) PALLOCTYPE(POLYGON);
if (!PointerIsValid(p))
- elog(WARN, "Cannot allocate polygon for union");
+ elog(ABORT, "Cannot allocate polygon for union");
MemSet((char *) p, 0, sizeof(POLYGON)); /* zero any holes */
p->size = sizeof(POLYGON);
@@ -136,7 +136,7 @@ rt_poly_inter(POLYGON *a, POLYGON *b)
p = (POLYGON *) PALLOCTYPE(POLYGON);
if (!PointerIsValid(p))
- elog(WARN, "Cannot allocate polygon for intersection");
+ elog(ABORT, "Cannot allocate polygon for intersection");
MemSet((char *) p, 0, sizeof(POLYGON)); /* zero any holes */
p->size = sizeof(POLYGON);