From 18d81d3880bca9635be907494532521771054b5b Mon Sep 17 00:00:00 2001 From: saint Date: Sun, 18 Aug 2024 05:47:22 +1000 Subject: [PATCH] v0.45 SQLIte mutexes only wrap around updates now --- gossamer_forums.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gossamer_forums.rb b/gossamer_forums.rb index 9e72f41..63f68e1 100644 --- a/gossamer_forums.rb +++ b/gossamer_forums.rb @@ -1361,14 +1361,14 @@ class GossamerForumsImporter < ImportScripts::Base puts "CREATE REPLY in topic_id #{topic.id}" - def get_topic_id - return topic.id - end +### def get_topic_id +### return topic.id +### end # Increment the post count for the topic post_number = fetch_db_topic_post_numbers(topic.id).to_i + 1 sqlite_mutex.synchronize do -### update_db_topic_post_numbers(topic.id, post_number) - update_db_topic_post_numbers(get_topic_id, post_number) + update_db_topic_post_numbers(topic.id, post_number) +### update_db_topic_post_numbers(get_topic_id, post_number) end # Fetch the number of views the post has had