From b44e9baf57325eb9ce6a0cd465a23ca39cd3016a Mon Sep 17 00:00:00 2001 From: saint Date: Sat, 17 Aug 2024 20:34:47 +1000 Subject: [PATCH] v0.42 Mutex addition for SQLite (which may be very important --- gossamer_forums.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gossamer_forums.rb b/gossamer_forums.rb index 84f54ea..8ff602f 100644 --- a/gossamer_forums.rb +++ b/gossamer_forums.rb @@ -1108,7 +1108,7 @@ class GossamerForumsImporter < ImportScripts::Base # Submit the import job for the current post_id to the thread pool pool.post do - puts "PP 11" + puts "PP 11 -- #{post_id}" # Initialise a new MariaDB / Mysql2 client inside of each thread mysql_client = Mysql2::Client.new( host: "slowtwitch.northend.network", @@ -1117,8 +1117,8 @@ class GossamerForumsImporter < ImportScripts::Base database: "slowtwitch" ) - puts "PP 22" - # Use connection ppoling for PostgreSQL and synchronize access to shared resources + puts "PP 22 -- ${post_id}" + # Use connection pooling for PostgreSQL and synchronize access to shared resources ActiveRecord::Base.connection_pool.with_connection do ### mutex.synchronize do begin