From 2966e1c9f9c5c5540fa2d27e3d2d73f9ed5fb13f Mon Sep 17 00:00:00 2001 From: saint Date: Sat, 17 Aug 2024 16:09:57 +1000 Subject: [PATCH] v0.41 Further improve FULL concurrency support, for both MySQL/MariaDB _and_ importantly, the PostGreSQL Discourse DB additions and changes with ActiveRecord connection pooling and Mutex --- gossamer_forums.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gossamer_forums.rb b/gossamer_forums.rb index 45d5866..55668fa 100644 --- a/gossamer_forums.rb +++ b/gossamer_forums.rb @@ -1159,7 +1159,7 @@ class GossamerForumsImporter < ImportScripts::Base #this parts needs to be synchronously to avoid race conditions # Fetch the post data for the given post_id (this is the first post in the topic) - row = execute_query("SELECT post_id, user_id_fk, forum_id_fk, post_root_id, post_subject, post_time, post_message, post_father_id, post_replies FROM gforum_Post WHERE post_id = #{post_id}", mysql.client).first + row = execute_query("SELECT post_id, user_id_fk, forum_id_fk, post_root_id, post_subject, post_time, post_message, post_father_id, post_replies FROM gforum_Post WHERE post_id = #{post_id}", mysql_client).first # Early return if the post data is not found return unless row