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
This commit is contained in:
parent
a005cda0ae
commit
2966e1c9f9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user