imported the tdb_repack() code from CTDB