equal
deleted
inserted
replaced
905 |
905 |
906 protected def synchronized_database[A](body: => A): A = synchronized { |
906 protected def synchronized_database[A](body: => A): A = synchronized { |
907 _build_database match { |
907 _build_database match { |
908 case None => body |
908 case None => body |
909 case Some(db) => |
909 case Some(db) => |
|
910 progress.asInstanceOf[Database_Progress].sync() |
910 Build_Process.Data.transaction_lock(db) { |
911 Build_Process.Data.transaction_lock(db) { |
911 progress.asInstanceOf[Database_Progress].sync() |
|
912 _state = Build_Process.Data.pull_database(db, worker_uuid, hostname, _state) |
912 _state = Build_Process.Data.pull_database(db, worker_uuid, hostname, _state) |
913 val res = body |
913 val res = body |
914 _state = |
914 _state = |
915 Build_Process.Data.update_database(db, worker_uuid, build_uuid, hostname, _state) |
915 Build_Process.Data.update_database(db, worker_uuid, build_uuid, hostname, _state) |
916 res |
916 res |