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

git at icinga.org git at icinga.org
Mon Apr 9 10:51:26 CEST 2012


Module: icinga-core
Branch: tdressler/ido
Commit: 717b9c82cdcf82b93f53fb53913bffc073ab631e
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=717b9c82cdcf82b93f53fb53913bffc073ab631e

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

---

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

diff --git a/Changelog b/Changelog
index 21034fb..56c4222 100644
--- a/Changelog
+++ b/Changelog
@@ -75,6 +75,7 @@ FIXES
 * idoutils: fix core dumps in solaris when using os supplied printf functions #2271,#1253
 * idoutils: fix lob handling in Oracle #2303,#2342
 * idoutils: fix sample shell db create script for mysql #2358
+* idoutils: fix OCI-21500 when freeing lobs #2509
 
 * install: Fix notification template installation (Todd Zullinger) #2235
 
diff --git a/module/idoutils/src/db.c b/module/idoutils/src/db.c
index 419388f..6377c64 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