messaging 4.0.0.pre → 4.0.1.pre
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 890880412ffa587c9b553e88d7b9ccf192de0bc6d465629b2b81ab499affd239
|
4
|
+
data.tar.gz: 73a9c88db9f865def6150d53001d37222ef1c05576f36250511fbf825482c0f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb9fd10c0f1434ba2e129c7b9c71b302abd8164186b84f8b5db95ce9b76fd61b2f0052298f2abd33fa7b19cc916924aa42a02fec4254823c96eab7dd85b46255
|
7
|
+
data.tar.gz: 4c1acafd63dc4dd6160813b0fb38f30aa597c70daf70b1c2703fc530fbfbf5905efff67ad19d811cb1696e4b4decc226c2b662f5b15c83c9795ae3583175f815
|
@@ -66,7 +66,7 @@ module Messaging
|
|
66
66
|
|
67
67
|
def fetch_messages
|
68
68
|
SerializedMessage.in_category(categories)
|
69
|
-
.
|
69
|
+
.with_transaction_id_lower_than_any_currently_running_transaction
|
70
70
|
.newer_than(last_processed_transaction_id, last_processed_position)
|
71
71
|
.order(:id)
|
72
72
|
.limit(1000)
|
@@ -10,7 +10,7 @@ module Messaging
|
|
10
10
|
where(stream_category: Array(categories).map(&:to_s))
|
11
11
|
end
|
12
12
|
|
13
|
-
def self.
|
13
|
+
def self.with_transaction_id_lower_than_any_currently_running_transaction
|
14
14
|
where('transaction_id < pg_snapshot_xmin(pg_current_snapshot())')
|
15
15
|
end
|
16
16
|
|
data/lib/messaging/version.rb
CHANGED