You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/app/services
ThibG 7adac1bc51 Try fixing ThreadResolveWorker calls (#3599)
* Try fixing ThreadResolveWorker calls

From my understanding of ActiveRecord, a transaction is commited as soon as
the exit of the outmost ActiveRecord.transaction block. However, inner
transaction blocks will exit without the transaction being commited.

In this case, ThreadResolveWorker were fired *within* a transaction block,
so moving the call out of it should do the trick. However, this is somewhat
fragile, as this whole codepath could be called within yet another transaction.

* Set status thread within the transaction block if it is immediately available from database
7 years ago
..
concerns
pubsubhubbub
account_search_service.rb
after_block_service.rb
authorize_follow_service.rb
base_service.rb
block_domain_from_account_service.rb
block_domain_service.rb
block_service.rb
fan_out_on_write_service.rb
favourite_service.rb
fetch_atom_service.rb
fetch_link_card_service.rb
fetch_remote_account_service.rb
fetch_remote_resource_service.rb
fetch_remote_status_service.rb
follow_remote_account_service.rb
follow_service.rb
mute_service.rb
notify_service.rb
post_status_service.rb
precompute_feed_service.rb
process_feed_service.rb Try fixing ThreadResolveWorker calls (#3599) 7 years ago
process_hashtags_service.rb
process_interaction_service.rb
process_mentions_service.rb
reblog_service.rb
reject_follow_service.rb
remove_status_service.rb
search_service.rb
send_interaction_service.rb
subscribe_service.rb
suspend_account_service.rb
unblock_domain_service.rb
unblock_service.rb
unfavourite_service.rb
unfollow_service.rb
unmute_service.rb
unsubscribe_service.rb
update_remote_profile_service.rb
verify_salmon_service.rb