mirror of
https://github.com/postgres/postgres.git
synced 2025-11-04 20:11:56 +03:00
Goodbye ABORT. Hello ERROR for all errors.
This commit is contained in:
8
src/backend/utils/cache/catcache.c
vendored
8
src/backend/utils/cache/catcache.c
vendored
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/cache/catcache.c,v 1.19 1998/01/05 03:34:22 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/cache/catcache.c,v 1.20 1998/01/07 21:06:08 momjian Exp $
|
||||
*
|
||||
* Notes:
|
||||
* XXX This needs to use exception.h to handle recovery when
|
||||
@@ -568,7 +568,7 @@ ResetSystemCache()
|
||||
CACHE1_elog(DEBUG, "ResetSystemCache called");
|
||||
if (DisableCache)
|
||||
{
|
||||
elog(ABORT, "ResetSystemCache: Called while cache disabled");
|
||||
elog(ERROR, "ResetSystemCache: Called while cache disabled");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -605,7 +605,7 @@ ResetSystemCache()
|
||||
nextelt = DLGetSucc(elt);
|
||||
CatCacheRemoveCTup(cache, elt);
|
||||
if (cache->cc_ntup == -1)
|
||||
elog(ABORT, "ResetSystemCache: cc_ntup<0 (software error)");
|
||||
elog(ERROR, "ResetSystemCache: cc_ntup<0 (software error)");
|
||||
}
|
||||
}
|
||||
cache->cc_ntup = 0; /* in case of WARN error above */
|
||||
@@ -892,7 +892,7 @@ SearchSysCache(struct catcache * cache,
|
||||
|
||||
if (DisableCache)
|
||||
{
|
||||
elog(ABORT, "SearchSysCache: Called while cache disabled");
|
||||
elog(ERROR, "SearchSysCache: Called while cache disabled");
|
||||
return ((HeapTuple) NULL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user