- not tested yet
- supposed to be used in edg_wll_TransNeedRetry()
EDG_WLL_IL_SYS, /**< Interlogger internal error. */
EDG_WLL_IL_EVENTS_WAITING, /**< Interlogger still has events pending delivery. */
EDG_WLL_ERROR_COMPARE_EVENTS, /**< Two compared events differ. */
+ EDG_WLL_ERROR_DB_TRANS_DEADLOCK, /**< Deadlock detected during DB operation. */
} edg_wll_ErrorCode;
/**
if (ctx->dbctx) {
code = glite_lbu_DBError(ctx->dbctx, NULL, &ed);
+ if (code == EDEADLOCK) code = EDG_WLL_ERROR_DB_TRANS_DEADLOCK;
edg_wll_SetError(ctx, code, ed);
free(ed);
} else {
if (retry_nr <= 0)
do_reconnect = 1;
break;
+ case ER_LOCK_DEADLOCK:
+ ERR(ctx, EDEADLOCK, db_handle.mysql_error(ctx->mysql));
+ return -1;
+ break;
default:
MY_ERR(ctx);
return -1;