ctdb-common: Use correct db_id size in marshalling record buffer
authorAmitay Isaacs <amitay@gmail.com>
Tue, 28 Jun 2016 04:35:11 +0000 (14:35 +1000)
committerMartin Schwenke <martins@samba.org>
Wed, 14 Sep 2016 06:39:28 +0000 (08:39 +0200)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/common/common.h
ctdb/common/ctdb_util.c

index 113816db9920ffd6a6cd935508508268baa512f5..cca48c9cb6e5eced8886981ba1cb5d82f8459989 100644 (file)
@@ -104,7 +104,7 @@ struct ctdb_rec_data_old *ctdb_marshall_record(TALLOC_CTX *mem_ctx,
 
 struct ctdb_marshall_buffer *ctdb_marshall_add(TALLOC_CTX *mem_ctx,
                                               struct ctdb_marshall_buffer *m,
-                                              uint64_t db_id,
+                                              uint32_t db_id,
                                               uint32_t reqid,
                                               TDB_DATA key,
                                               struct ctdb_ltdb_header *header,
index 154878b0f328cc342e3c2a3b75bd1ec2b2aa62d2..72358ca7e729ebe6b4812e75f91a378a6929411f 100644 (file)
@@ -273,7 +273,7 @@ struct ctdb_rec_data_old *ctdb_marshall_record(TALLOC_CTX *mem_ctx,
 /* helper function for marshalling multiple records */
 struct ctdb_marshall_buffer *ctdb_marshall_add(TALLOC_CTX *mem_ctx,
                                               struct ctdb_marshall_buffer *m,
-                                              uint64_t db_id,
+                                              uint32_t db_id,
                                               uint32_t reqid,
                                               TDB_DATA key,
                                               struct ctdb_ltdb_header *header,