diff options
author | Luis Fernando Munoz Mejias <Luis.Fernando.Munoz.Mejias@cern.ch> | 2009-11-12 14:34:55 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-11-12 14:34:55 +0100 |
commit | cc50b6824e21d9ebb3491bbd4c6d7d8f09be9657 (patch) | |
tree | 2bb0ad333b5b694b934a405dbfa67e0c6651861e /plugins | |
parent | 329b20451f0ed767dbf08903cab9a380ff1f4302 (diff) | |
download | rsyslog-cc50b6824e21d9ebb3491bbd4c6d7d8f09be9657.tar.gz rsyslog-cc50b6824e21d9ebb3491bbd4c6d7d8f09be9657.tar.xz rsyslog-cc50b6824e21d9ebb3491bbd4c6d7d8f09be9657.zip |
If the server disconnects the handle is no longer valid and we need to
call tryResume(), so we have to return RS_RET_SUSPENDED. Otherwise, we
may keep losing messages until rsyslog is restarted.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/omoracle/omoracle.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/omoracle/omoracle.c b/plugins/omoracle/omoracle.c index 331b7dd4..ee0c226a 100644 --- a/plugins/omoracle/omoracle.c +++ b/plugins/omoracle/omoracle.c @@ -180,6 +180,9 @@ static int oci_errors(void* handle, ub4 htype, sword status) break; case OCI_INVALID_HANDLE: errmsg.LogError(0, NO_ERRCODE, "OCI INVALID HANDLE\n"); + /* In this case we may have to trigger a call to + * tryResume(). */ + return RS_RET_SUSPENDED; break; case OCI_STILL_EXECUTING: errmsg.LogError(0, NO_ERRCODE, "Still executing...\n"); |