BIND 10 trac2853, updated. 2935657cc5e260f54be045b28d7184adb406d3d7 [2853] Fix call

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Jun 5 15:10:54 UTC 2013


The branch, trac2853 has been updated
       via  2935657cc5e260f54be045b28d7184adb406d3d7 (commit)
       via  77010a2090eb1cade512f03e880df4cca13e9eb4 (commit)
      from  d340d8278228a062664eda13926f5af3daef8b35 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2935657cc5e260f54be045b28d7184adb406d3d7
Author: Mukund Sivaraman <muks at isc.org>
Date:   Wed Jun 5 17:42:21 2013 +0530

    [2853] Fix call

commit 77010a2090eb1cade512f03e880df4cca13e9eb4
Author: Mukund Sivaraman <muks at isc.org>
Date:   Wed Jun 5 17:42:08 2013 +0530

    [2853] Initialize ZoneWriter module part

-----------------------------------------------------------------------

Summary of changes:
 .../isc/datasrc/configurableclientlist_python.cc   |    2 +-
 src/lib/python/isc/datasrc/datasrc.cc              |    7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)

-----------------------------------------------------------------------
diff --git a/src/lib/python/isc/datasrc/configurableclientlist_python.cc b/src/lib/python/isc/datasrc/configurableclientlist_python.cc
index 47cab01..712b280 100644
--- a/src/lib/python/isc/datasrc/configurableclientlist_python.cc
+++ b/src/lib/python/isc/datasrc/configurableclientlist_python.cc
@@ -178,7 +178,7 @@ ConfigurableClientList_getCachedZoneWriter(PyObject* po_self, PyObject* args) {
             } else {
                 // Make sure it keeps the writer alive.
                 writer.reset(createZoneWriterObject(result.second,
-                                                    writer.get()));
+                                                    NULL));
             }
 
             return (Py_BuildValue("IO", result.first, writer.get()));
diff --git a/src/lib/python/isc/datasrc/datasrc.cc b/src/lib/python/isc/datasrc/datasrc.cc
index f2cbae3..384fbf9 100644
--- a/src/lib/python/isc/datasrc/datasrc.cc
+++ b/src/lib/python/isc/datasrc/datasrc.cc
@@ -33,6 +33,7 @@
 #include "journal_reader_python.h"
 #include "configurableclientlist_python.h"
 #include "zone_loader_python.h"
+#include "zonewriter_python.h"
 
 #include <util/python/pycppwrapper_util.h>
 #include <dns/python/pydnspp_common.h>
@@ -42,6 +43,7 @@
 
 using namespace isc::datasrc;
 using namespace isc::datasrc::python;
+using namespace isc::datasrc::memory::python;
 using namespace isc::util::python;
 using namespace isc::dns::python;
 
@@ -340,5 +342,10 @@ PyInit_datasrc(void) {
         return (NULL);
     }
 
+    if (!initModulePart_ZoneWriter(mod)) {
+        Py_DECREF(mod);
+        return (NULL);
+    }
+
     return (mod);
 }



More information about the bind10-changes mailing list