awful 0.0.66 → 0.0.67
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/awful/dynamodb.rb +2 -2
- data/lib/awful/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3417964c4b141a0c31c4c3f3b138d272c5f11a61
|
4
|
+
data.tar.gz: 057174af836697f83f6763a5a9a994df3359bc3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4524049f3348effb159b96fa99291c173dc0b423675c2317008e6414a4443dab6fcef8a1353f7c421373ad2a66ff8142c0735d9762a58593efddc4dd61d40a26
|
7
|
+
data.tar.gz: 6df9d07aadd7cf07a1f495fa8f188a6e1f7f23ad2c6dfeaa0fb62fdf9f6789e32eb2c883aa56f3bbd9565abfd49d408fadb407f4949ceed32093cb20fafb5e8a
|
data/lib/awful/dynamodb.rb
CHANGED
@@ -146,7 +146,7 @@ module Awful
|
|
146
146
|
## would be more studly as an anonymous y-combinator, but we should write readable code instead
|
147
147
|
scan_and_put = ->(myself, key) {
|
148
148
|
r = src_client.scan(table_name: src_table, exclusive_start_key: key, return_consumed_capacity: 'INDEXES')
|
149
|
-
print "[#{Time.now}] [#{src_table}]
|
149
|
+
print "[#{Time.now}] [#{src_table}] scanned:#{r.count} key:#{r.last_evaluated_key || 'nil'}"
|
150
150
|
put = skipped = 0
|
151
151
|
r.items.each do |item|
|
152
152
|
begin
|
@@ -159,7 +159,7 @@ module Awful
|
|
159
159
|
end
|
160
160
|
end
|
161
161
|
print "\n"
|
162
|
-
puts "[#{Time.now}] [#{dst_table}]
|
162
|
+
puts "[#{Time.now}] [#{dst_table}] put:#{put} skipped:#{skipped}"
|
163
163
|
|
164
164
|
## recurse if there are more keys to scan
|
165
165
|
if r.last_evaluated_key
|
data/lib/awful/version.rb
CHANGED