[Python-checkins] cpython (2.7): Berkeley DB: Erratic behaviour of "DBEnv->rep_elect()" because a typo

jesus.cea python-checkins at python.org
Mon Jan 16 23:58:07 CET 2012


http://hg.python.org/cpython/rev/b103cc65e53d
changeset:   74461:b103cc65e53d
branch:      2.7
parent:      74450:7167c04780ed
user:        Jesus Cea <jcea at jcea.es>
date:        Mon Jan 16 23:57:34 2012 +0100
summary:
  Berkeley DB: Erratic behaviour of "DBEnv->rep_elect()" because a typo

files:
  Modules/_bsddb.c |  2 +-
  Modules/bsddb.h  |  2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c
--- a/Modules/_bsddb.c
+++ b/Modules/_bsddb.c
@@ -7257,7 +7257,7 @@
     }
     CHECK_ENV_NOT_CLOSED(self);
     MYDB_BEGIN_ALLOW_THREADS;
-    err = self->db_env->rep_elect(self->db_env, nvotes, nvotes, 0);
+    err = self->db_env->rep_elect(self->db_env, nsites, nvotes, 0);
     MYDB_END_ALLOW_THREADS;
     RETURN_IF_ERR();
     RETURN_NONE();
diff --git a/Modules/bsddb.h b/Modules/bsddb.h
--- a/Modules/bsddb.h
+++ b/Modules/bsddb.h
@@ -109,7 +109,7 @@
 #error "eek! DBVER can't handle minor versions > 9"
 #endif
 
-#define PY_BSDDB_VERSION "4.8.4.1"
+#define PY_BSDDB_VERSION "4.8.4.2"
 
 /* Python object definitions */
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list