clarified signature;
authorwenzelm
Fri, 07 Jul 2023 14:17:53 +0200
changeset 78263 8c999990262c
parent 78262 968b5b981a8c
child 78264 c8fde312c895
clarified signature;
src/Pure/General/sql.scala
src/Pure/System/progress.scala
src/Pure/Tools/build_process.scala
--- a/src/Pure/General/sql.scala	Fri Jul 07 14:10:36 2023 +0200
+++ b/src/Pure/General/sql.scala	Fri Jul 07 14:17:53 2023 +0200
@@ -260,9 +260,6 @@
       if (synchronized) db.synchronized { run } else run
     }
 
-    def vacuum(db: Database, more_tables: Tables = Tables.empty): Unit =
-      db.vacuum(tables = tables ::: more_tables)
-
     def make_table(name: String, columns: List[Column], body: String = ""): Table = {
       val table_name =
         List(proper_string(table_prefix), proper_string(name)).flatten.mkString("_")
--- a/src/Pure/System/progress.scala	Fri Jul 07 14:10:36 2023 +0200
+++ b/src/Pure/System/progress.scala	Fri Jul 07 14:17:53 2023 +0200
@@ -289,7 +289,7 @@
         stmt.long(10) = 0L
       })
     }
-    if (context_uuid == _agent_uuid) Progress.Data.vacuum(db)
+    if (context_uuid == _agent_uuid) db.vacuum(Progress.Data.tables)
   }
 
   def exit(close: Boolean = false): Unit = synchronized {
--- a/src/Pure/Tools/build_process.scala	Fri Jul 07 14:10:36 2023 +0200
+++ b/src/Pure/Tools/build_process.scala	Fri Jul 07 14:17:53 2023 +0200
@@ -850,7 +850,7 @@
           Build_Process.Data.clean_build(db)
           more_tables.lock(db, create = true)
         }
-        Build_Process.Data.vacuum(db, more_tables = more_tables)
+        db.vacuum(Build_Process.Data.tables ::: more_tables)
         db
       }
     }