diff options
author | Luis Fernando Muñoz Mejías <Luis.Fernando.Munoz.Mejias@cern.ch> | 2009-03-30 10:39:36 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-04-01 18:19:39 +0200 |
commit | d702d3f6ff1540691aae29012dd142212e0eb04c (patch) | |
tree | 1a9653ec8627e75c398f87980b5a61955a15081e | |
parent | c54de8212fe434080983b70d9ffa200d52f68ccd (diff) | |
download | rsyslog-d702d3f6ff1540691aae29012dd142212e0eb04c.tar.gz rsyslog-d702d3f6ff1540691aae29012dd142212e0eb04c.tar.xz rsyslog-d702d3f6ff1540691aae29012dd142212e0eb04c.zip |
Make tryResume not to retry the last action, but just to reconnect.
The core will call the action if tryResume succeeds, no need to make
it from here.
-rw-r--r-- | plugins/omoracle/omoracle.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/omoracle/omoracle.c b/plugins/omoracle/omoracle.c index eba45c5b..29ec2303 100644 --- a/plugins/omoracle/omoracle.c +++ b/plugins/omoracle/omoracle.c @@ -174,7 +174,7 @@ CODESTARTtryResume * ... of course I don't know why Oracle might need a full restart... * rgerhards, 2009-03-26 */ - dbgprintf("Attempting to restart the last action\n"); + dbgprintf("Attempting to reconnect to DB server\n"); OCISessionRelease(pData->service, pData->error, NULL, 0, OCI_DEFAULT); OCIHandleFree(pData->service, OCI_HTYPE_SVCCTX); CHECKERR(pData->error, OCISessionGet(pData->environment, pData->error, @@ -182,9 +182,6 @@ CODESTARTtryResume pData->connection, strlen(pData->connection), NULL, 0, NULL, NULL, NULL, OCI_DEFAULT)); - CHECKERR(pData->error, OCIStmtExecute(pData->service, pData->statement, - pData->error, 1, 0, NULL, NULL, - OCI_DEFAULT)); finalize_it: ENDtryResume |