ensure pad bytes in the ltdb_header are initialised
authorAndrew Tridgell <tridge@samba.org>
Fri, 4 Jul 2008 07:40:25 +0000 (17:40 +1000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 4 Jul 2008 07:40:25 +0000 (17:40 +1000)
(This used to be ctdb commit 00b1a635e3d61ca7c5487d65ac54f3eb6ea7355e)

ctdb/common/ctdb_ltdb.c

index a6bf26817aae9a6142d3076acd88010ad453c2a0..f3604584fbe9d79756b5c4840e8cfaa3b64e5a33 100644 (file)
@@ -62,11 +62,10 @@ static void ltdb_initial_header(struct ctdb_db_context *ctdb_db,
                                TDB_DATA key,
                                struct ctdb_ltdb_header *header)
 {
-       header->rsn = 0;
+       ZERO_STRUCTP(header);
        /* initial dmaster is the lmaster */
        header->dmaster = ctdb_lmaster(ctdb_db->ctdb, &key);
        header->laccessor = header->dmaster;
-       header->lacount = 0;
 }