summaryrefslogtreecommitdiffstats
path: root/plugins/omoracle
diff options
context:
space:
mode:
authorLuis Fernando Muñoz Mejías <Luis.Fernando.Munoz.Mejias@cern.ch>2009-03-25 18:16:31 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2009-03-25 18:50:52 +0100
commit0289fb7f5c63ee1563eb829b5b1a0fcf3dfa279a (patch)
treeeaaa6667120923ba44345522f5b6a3e181666120 /plugins/omoracle
parentb6123427cf962e70836c07d1c5c2cf39978673b8 (diff)
downloadrsyslog-0289fb7f5c63ee1563eb829b5b1a0fcf3dfa279a.tar.gz
rsyslog-0289fb7f5c63ee1563eb829b5b1a0fcf3dfa279a.tar.xz
rsyslog-0289fb7f5c63ee1563eb829b5b1a0fcf3dfa279a.zip
Remove useless dbgprintf and add documentation.
Diffstat (limited to 'plugins/omoracle')
-rw-r--r--plugins/omoracle/omoracle.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/plugins/omoracle/omoracle.c b/plugins/omoracle/omoracle.c
index aa506dca..4cf4c724 100644
--- a/plugins/omoracle/omoracle.c
+++ b/plugins/omoracle/omoracle.c
@@ -43,13 +43,21 @@ DEF_OMOD_STATIC_DATA
DEFobjCurrIf(errmsg)
typedef struct _instanceData {
+ /* Environment handler, the base for any OCI work. */
OCIEnv* environment;
+ /* Session handler, the actual DB connection object. */
OCISession* session;
+ /* Error handler for OCI calls. */
OCIError* error;
+ /* Prepared statement. */
OCIStmt* statement;
+ /* Service handler. */
OCISvcCtx* service;
+ /* Credentials object for the connection. */
OCIAuthInfo* authinfo;
+ /* Binding parameters, currently unused */
OCIBind* binding;
+ /* Connection string, kept here for possible retries. */
char* connection;
} instanceData;
@@ -177,6 +185,8 @@ static rsRetVal startSession(instanceData* pData, char* connection, char* user,
strlen(connection), NULL, 0, NULL, NULL, NULL,
OCI_DEFAULT));
finalize_it:
+ if (iRet != RS_RET_OK)
+ errmsg.LogError(0, NO_ERRCODE, "Unable to start Oracle session\n");
RETiRet;
}
@@ -254,14 +264,12 @@ ENDmodExit
BEGINdbgPrintInstInfo
CODESTARTdbgPrintInstInfo
- dbgprintf ("***** OMORACLE ***** At bdgPrintInstInfo\n");
ENDdbgPrintInstInfo
BEGINqueryEtryPt
CODESTARTqueryEtryPt
CODEqueryEtryPt_STD_OMOD_QUERIES
- dbgprintf ("***** OMORACLE ***** At queryEtryPt\n");
ENDqueryEtryPt
static rsRetVal