[icinga-checkins] icinga.org: icinga-core/r1.6: idoutils: fix OCI-21500 when freeing lobs #2509

git at icinga.org git at icinga.org
Sat Apr 28 11:22:09 CEST 2012


Module: icinga-core
Branch: r1.6
Commit: 0d087fb03c76b30a9af0ec8c9a5538c9430c1fb8
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=0d087fb03c76b30a9af0ec8c9a5538c9430c1fb8

Author: Thomas Dressler <tdressler at tdressler.net>
Date:   Mon Apr  9 08:56:28 2012 +0200

idoutils: fix OCI-21500 when freeing lobs #2509
refs #2509

Conflicts:

	Changelog

---

 Changelog                |    2 ++
 module/idoutils/src/db.c |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/Changelog b/Changelog
index a4dba7f..df1efdc 100644
--- a/Changelog
+++ b/Changelog
@@ -23,6 +23,8 @@ FIXES
 * idoutils: change standard string escaping for postgresql queries to use the E'foo' notation #1974
 * idoutils: fix ORA-00913 too many values when MERGE INTO eventhandlers #2319
 * idoutils: partly cherry-pick fixes for solaris segfaults from #2271
+* idoutils: fix OCI-21500 when freeing lobs #2509
+
 
 CHANGES
 
diff --git a/module/idoutils/src/db.c b/module/idoutils/src/db.c
index c7a1456..81c364e 100644
--- a/module/idoutils/src/db.c
+++ b/module/idoutils/src/db.c
@@ -329,7 +329,7 @@ int ido2db_db_init(ido2db_idi *idi) {
 	}
 
 	/* register error handler and init oci */
-	if (!OCI_Initialize(ido2db_ocilib_err_handler, NULL, OCI_ENV_CONTEXT)) {
+	if (!OCI_Initialize(ido2db_ocilib_err_handler, NULL, OCI_ENV_THREADED|OCI_ENV_CONTEXT)) {
 		syslog(LOG_USER | LOG_INFO, "Error:  OCI_Initialize() failed\n");
 		ido2db_log_debug_info(IDO2DB_DEBUGL_PROCESSINFO, 2, "OCI_Initialize() failed\n");
 		return IDO_ERROR;





More information about the icinga-checkins mailing list