embulk-output-vertica 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/embulk-output-vertica.gemspec +1 -1
- data/lib/embulk/output/vertica/output_thread.rb +5 -2
- 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: d6a6bc55961d3c9ee7f0eeac61c4c845f408fe43
|
4
|
+
data.tar.gz: 709e04e684eeeadc11b461e834a8406de183f1d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a7a9383471db1bfb5c4b2f8d05d0dcbdd9e6f731bad883c03c17167cba706a9ea99c75f8eda99b5c622b247ccca7846245b3f8ee2e82d28482a775722dd242d
|
7
|
+
data.tar.gz: 01f088c282721e8f231fa58574f2ac3459780e7ef0af274c78f6d7e45e7a6665314d58b3597492fafa072a95fed39e13d9e6a124834cfa37195cf5688789f311
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "embulk-output-vertica"
|
3
|
-
spec.version = "0.5.
|
3
|
+
spec.version = "0.5.1"
|
4
4
|
spec.authors = ["eiji.sekiya", "Naotoshi Seo"]
|
5
5
|
spec.email = ["eiji.sekiya.0326@gmail.com", "sonots@gmail.com"]
|
6
6
|
spec.summary = "Vertica output plugin for Embulk"
|
@@ -10,11 +10,14 @@ module Embulk
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def enqueue(page)
|
13
|
-
@
|
14
|
-
|
13
|
+
@mutex.synchronize do
|
14
|
+
@output_threads[@current_index].enqueue(page)
|
15
|
+
@current_index = (@current_index + 1) % @size
|
16
|
+
end
|
15
17
|
end
|
16
18
|
|
17
19
|
def start
|
20
|
+
@mutex = Mutex.new
|
18
21
|
@size.times.map {|i| @output_threads[i].start }
|
19
22
|
end
|
20
23
|
|