1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
/****************************************************************
* *
* Copyright (c) 2003-2018 Fidelity National Information *
* Services, Inc. and/or its subsidiaries. All rights reserved. *
* *
* This source code contains the intellectual property *
* of its copyright holder(s), and is made available *
* under a license. If you do not know the terms of *
* the license, please stop and do not read further. *
* *
****************************************************************/
#include "mdef.h"
#include "error.h"
#include "util.h"
#include "gtm_multi_thread.h"
error_def(ERR_MEMORY);
error_def(ERR_MEMORYRECURSIVE);
error_def(ERR_HTOFLOW);
CONDITION_HANDLER(hashtab_rehash_ch)
{
/* If we cannot alloc memory during rehashing, just continue in normal program flow */
START_CH(TRUE);
/* If we cannot allocate memory or any error while doing rehash, just abort any more rehashing.
* We will continue with old table.
*/
if (ERR_HTOFLOW == SIGNAL || ERR_MEMORY == SIGNAL || ERR_MEMORYRECURSIVE == SIGNAL)
{
UNIX_ONLY(util_out_print("", RESET)); /* Prevents error message from being flushed later by rts_error() */
char *rname;
if (INSIDE_THREADED_CODE(rname))
{
GTM_PTHREAD_EXIT(SIGNAL);
} else
{
UNWIND(NULL, NULL);
}
} else
{
NEXTCH; /* non memory related error */
}
}
|