avoid infinite loop after DB deadlock
authorMiloš Mulač <mulac@civ.zcu.cz>
Thu, 28 Feb 2008 17:16:39 +0000 (17:16 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Thu, 28 Feb 2008 17:16:39 +0000 (17:16 +0000)
org.glite.lb.server/src/db_supp.c

index 41f0bb5..132ac20 100644 (file)
@@ -86,6 +86,7 @@ int edg_wll_TransNeedRetry(edg_wll_Context ctx) {
        ret = edg_wll_Error(ctx,NULL,NULL);
        if (ret == EDG_WLL_ERROR_DB_TRANS_DEADLOCK) {
                edg_wll_Rollback(ctx);
+               edg_wll_ResetError(ctx);
                return 1;
        } else if (ret==0) {
                edg_wll_Commit(ctx); /* errors propagated further */