tuned signature;
authorwenzelm
Tue, 14 Mar 2023 17:09:52 +0100
changeset 77653 26bb79d17910
parent 77652 5f706f7c624b
child 77654 78913f29fc21
tuned signature;
src/Pure/Tools/build_process.scala
--- a/src/Pure/Tools/build_process.scala	Tue Mar 14 17:05:49 2023 +0100
+++ b/src/Pure/Tools/build_process.scala	Tue Mar 14 17:09:52 2023 +0100
@@ -888,6 +888,7 @@
   protected final val store: Sessions.Store = build_context.store
   protected final val build_options: Options = store.options
   protected final val build_deps: Sessions.Deps = build_context.build_deps
+  protected final val hostname: String = build_context.hostname
   protected final val build_uuid: String = build_context.build_uuid
   protected final val worker_uuid: String = UUID.random().toString
 
@@ -910,13 +911,12 @@
         case None => body
         case Some(db) =>
           def pull_database(): Unit = {
-            _state = Build_Process.Data.pull_database(db, worker_uuid, build_context.hostname, _state)
+            _state = Build_Process.Data.pull_database(db, worker_uuid, hostname, _state)
           }
 
           def sync_database(): Unit = {
             _state =
-              Build_Process.Data.update_database(
-                db, worker_uuid, build_uuid, build_context.hostname, _state)
+              Build_Process.Data.update_database(db, worker_uuid, build_uuid, hostname, _state)
           }
 
           def attempt(): Either[A, Build_Process.Progress_Messages] = {
@@ -1045,7 +1045,7 @@
     }
     else {
       val (numa_node, state1) = state.next_numa_node(build_context.numa_nodes)
-      val node_info = Host.Node_Info(build_context.hostname, numa_node)
+      val node_info = Host.Node_Info(hostname, numa_node)
 
       progress.echo(
         (if (store_heap) "Building " else "Running ") + session_name +
@@ -1088,7 +1088,7 @@
       val java_start = Date.instant(java.info.startInstant.get)
       _state = _state.inc_serial
       Build_Process.Data.start_worker(
-        db, worker_uuid, build_uuid, build_context.hostname, java_pid, java_start, _state.serial)
+        db, worker_uuid, build_uuid, hostname, java_pid, java_start, _state.serial)
       _state = _state.set_workers(Build_Process.Data.read_workers(db))
     }
   }