ctdb-protocol: Add marshalling for struct ctdb_db_vacuum
[slow/samba.git] / ctdb / tests / src / protocol_common.c
index 73e9a8c5d0dccf2219e66aaa6e039dfc1e6f5344..2030b4bb5e556eb6c91b652df6714099d37f8c6d 100644 (file)
@@ -310,6 +310,19 @@ void verify_ctdb_pulldb_ext(struct ctdb_pulldb_ext *p1,
        assert(p1->srvid == p2->srvid);
 }
 
+void fill_ctdb_db_vacuum(TALLOC_CTX *mem_ctx, struct ctdb_db_vacuum *p)
+{
+       fill_ctdb_uint32(&p->db_id);
+       fill_ctdb_bool(&p->full_vacuum_run);
+}
+
+void verify_ctdb_db_vacuum(struct ctdb_db_vacuum *p1,
+                           struct ctdb_db_vacuum *p2)
+{
+       verify_ctdb_uint32(&p1->db_id, &p2->db_id);
+       verify_ctdb_bool(&p1->full_vacuum_run, &p2->full_vacuum_run);
+}
+
 void fill_ctdb_ltdb_header(struct ctdb_ltdb_header *p)
 {
        p->rsn = rand64();