[CalendarServer-changes] [9864] CalendarServer/trunk

source_changes at macosforge.org source_changes at macosforge.org
Wed Sep 26 14:58:22 PDT 2012


Revision: 9864
          http://trac.calendarserver.org//changeset/9864
Author:   glyph at apple.com
Date:     2012-09-26 14:58:22 -0700 (Wed, 26 Sep 2012)
Log Message:
-----------
OCI_ATTR_DEFAULT_LOBPREFETCH_SIZE was only added in 11g; cx_Oracle still supports 10.

Modified Paths:
--------------
    CalendarServer/trunk/lib-patches/cx_Oracle/nclob-fixes-and-prefetch.patch

Property Changed:
----------------
    CalendarServer/trunk/

Modified: CalendarServer/trunk/lib-patches/cx_Oracle/nclob-fixes-and-prefetch.patch
===================================================================
--- CalendarServer/trunk/lib-patches/cx_Oracle/nclob-fixes-and-prefetch.patch	2012-09-26 21:12:46 UTC (rev 9863)
+++ CalendarServer/trunk/lib-patches/cx_Oracle/nclob-fixes-and-prefetch.patch	2012-09-26 21:58:22 UTC (rev 9864)
@@ -2,10 +2,11 @@
 ===================================================================
 --- Connection.c	2011-03-19 16:05:30.000000000 -0700
 +++ Connection.c	2012-08-01 09:22:17.000000000 -0700
-@@ -713,6 +713,19 @@
+@@ -713,6 +713,21 @@
      if (newPasswordObj)
          return Connection_ChangePassword(self, self->password, newPasswordObj);
  
++#ifdef OCI_ATTR_DEFAULT_LOBPREFETCH_SIZE
 +    /* set lob prefetch attribute to session */
 +    ub4 default_lobprefetch_size = 4096;                  /* Set default size to 4K */
 +    status = OCIAttrSet (self->sessionHandle, (ub4) OCI_HTYPE_SESSION,
@@ -19,6 +20,7 @@
 +        return -1;
 +    }
 +
++#endif
      // begin the session
      Py_BEGIN_ALLOW_THREADS
      status = OCISessionBegin(self->handle, self->environment->errorHandle,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120926/0ef07d8d/attachment.html>


More information about the calendarserver-changes mailing list