rotate_index
int rotate_index(const char *dbfile, const char *new_suffix,
if (!rotate_index(dbfile, "new", "old"))