The branch, master has been updated
       via  417c16e s3:dbwrap_ctdb: improve the check for skipping the 
__db_sequence_number__ record in traverse
      from  f4fa725 libcli: Install libcli.h.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 417c16e4e6d6a51171f8d2982e8bf9c4d602e058
Author: Michael Adam <ob...@samba.org>
Date:   Tue Sep 27 16:06:48 2011 +0200

    s3:dbwrap_ctdb: improve the check for skipping the __db_sequence_number__ 
record in traverse
    
    It did not compare the last charcter (usually '\0')
    
    Autobuild-User: Michael Adam <ob...@samba.org>
    Autobuild-Date: Wed Sep 28 16:54:59 CEST 2011 on sn-devel-104

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

Summary of changes:
 source3/lib/dbwrap/dbwrap_ctdb.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/lib/dbwrap/dbwrap_ctdb.c b/source3/lib/dbwrap/dbwrap_ctdb.c
index d9fb489..84d7b2f 100644
--- a/source3/lib/dbwrap/dbwrap_ctdb.c
+++ b/source3/lib/dbwrap/dbwrap_ctdb.c
@@ -1267,8 +1267,7 @@ static int traverse_persistent_callback(TDB_CONTEXT *tdb, 
TDB_DATA kbuf, TDB_DAT
         * This is used for persistent transactions internally.
         */
        if (kbuf.dsize == strlen(CTDB_DB_SEQNUM_KEY) + 1 &&
-           strncmp((const char*)kbuf.dptr, CTDB_DB_SEQNUM_KEY,
-                   strlen(CTDB_DB_SEQNUM_KEY)) == 0)
+           strcmp((const char*)kbuf.dptr, CTDB_DB_SEQNUM_KEY))
        {
                goto done;
        }


-- 
Samba Shared Repository

Reply via email to