Skip to content

Commit

Permalink
Revert "CPFM-246. Remove ordering change and stick to only including …
Browse files Browse the repository at this point in the history
…DB reconnect fix"

This reverts commit 0697f0e.
  • Loading branch information
Sean Casey committed Feb 18, 2021
1 parent da7cc65 commit db52048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/deimos/utils/db_poller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def fetch_results(time_from, time_to)
column_name: @config.timestamp_column,
min_id: @info.last_sent_id).
limit(BATCH_SIZE).
order("#{quoted_timestamp}, #{quoted_id}")
order("#{@producer.config[:record_class].table_name}.#{quoted_timestamp}, #{quoted_id}")
end

# @param batch [Array<ActiveRecord::Base>]
Expand Down

0 comments on commit db52048

Please sign in to comment.