diff --git a/server/ctdb_vacuum.c b/server/ctdb_vacuum.c index f1e61db..98306c2 100644 --- a/server/ctdb_vacuum.c +++ b/server/ctdb_vacuum.c @@ -686,7 +686,7 @@ static int get_vacuum_interval(struct ctdb_db_context *ctdb_db) struct ctdb_context *ctdb = ctdb_db->ctdb; int flags; - vac_dbname = talloc_asprintf(tmp_ctx, "%s/%s.%u", ctdb->db_directory, TUNINGDBNAME, ctdb->pnn); + vac_dbname = talloc_asprintf(tmp_ctx, "%s/%s.%u", ctdb->db_directory_state, TUNINGDBNAME, ctdb->pnn); if (vac_dbname == NULL) { DEBUG(DEBUG_CRIT,(__location__ " Out of memory error while allocating '%s'\n", vac_dbname)); talloc_free(tmp_ctx);