elasticsearch-rails-ha 1.0.7 → 1.0.8
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25a220fa124e6cdc783062a7426ca89ed4b4ccea
|
4
|
+
data.tar.gz: feaecfa62592feb7cf570cc58f399e590b5e8f3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7586a639ffbc7e31fb33bf94db5542a07232235b1eb16b87faee5ae38088aa3b4368bda417649d8ff7c71c988b33eaee343ff1b3f26923b5ff986031a768c21
|
7
|
+
data.tar.gz: 9337f9ea3fa70f715bd7e2e62a6a1574db4d619bf23b1e81e474791335c5914a9a41150af5f96a4ef329d4c77edcbb7129c5345d5793afb6f1211b296a65d930
|
@@ -49,9 +49,9 @@ module Elasticsearch
|
|
49
49
|
klass.__elasticsearch__.refresh_index! index: idx_name
|
50
50
|
end
|
51
51
|
|
52
|
-
@current_db_config = ActiveRecord::Base.connection_config
|
52
|
+
@current_db_config = ::ActiveRecord::Base.connection_config
|
53
53
|
# IMPORTANT before forks in offsets loop
|
54
|
-
ActiveRecord::Base.connection.disconnect!
|
54
|
+
::ActiveRecord::Base.connection.disconnect!
|
55
55
|
|
56
56
|
child_pids = []
|
57
57
|
offsets.each do |start_at|
|
@@ -64,7 +64,7 @@ module Elasticsearch
|
|
64
64
|
end
|
65
65
|
|
66
66
|
# reconnect in parent
|
67
|
-
ActiveRecord::Base.establish_connection(@current_db_config)
|
67
|
+
::ActiveRecord::Base.establish_connection(@current_db_config)
|
68
68
|
|
69
69
|
# Process.waitall seems to hang during tests. Do it manually.
|
70
70
|
child_results = []
|
@@ -109,7 +109,7 @@ module Elasticsearch
|
|
109
109
|
|
110
110
|
def run_child(start_at)
|
111
111
|
# IMPORTANT after fork
|
112
|
-
ActiveRecord::Base.establish_connection(@current_db_config)
|
112
|
+
::ActiveRecord::Base.establish_connection(@current_db_config)
|
113
113
|
|
114
114
|
# IMPORTANT for tests to determine whether at_end should run
|
115
115
|
ENV["I_AM_HA_CHILD"] = "true"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticsearch-rails-ha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Karman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: elasticsearch-model
|