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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 14be9147838a9b3e7e7c7ace08b5d26b491538cf
4
- data.tar.gz: 1f53ce38472f8c015e38e2b502cb652dfcaeef6e
3
+ metadata.gz: d6a6bc55961d3c9ee7f0eeac61c4c845f408fe43
4
+ data.tar.gz: 709e04e684eeeadc11b461e834a8406de183f1d5
5
5
  SHA512:
6
- metadata.gz: f265d51ec0ffc498cbeaf66f6b86622d2cce48f2d9d5cac846250930bec95376b3dde1069f5aff12fd3c89a16d50172c3faed476652fd1cae9ac9d7eb582a04c
7
- data.tar.gz: 9eebc8e2346c03d908c9ca2c735623a6890d2e6ae852c3083efef543694b905e6d9d3babd24e1c7a9ced34433e13ee3e42a1bd0e28babfab6ab070e8009e8ead
6
+ metadata.gz: 3a7a9383471db1bfb5c4b2f8d05d0dcbdd9e6f731bad883c03c17167cba706a9ea99c75f8eda99b5c622b247ccca7846245b3f8ee2e82d28482a775722dd242d
7
+ data.tar.gz: 01f088c282721e8f231fa58574f2ac3459780e7ef0af274c78f6d7e45e7a6665314d58b3597492fafa072a95fed39e13d9e6a124834cfa37195cf5688789f311
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.5.1 (2015/12/04)
2
+
3
+ Fixes:
4
+
5
+ * Need mutex.synchroize for OutputThreadPool#enqueue because it is called by #add which is ran by multiple threads
6
+
1
7
  # 0.5.0 (2015/12/04)
2
8
 
3
9
  Changes:
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "embulk-output-vertica"
3
- spec.version = "0.5.0"
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
- @output_threads[@current_index].enqueue(page)
14
- @current_index = (@current_index + 1) % @size
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-output-vertica
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - eiji.sekiya