commit: 12fc88be4083d49752af89733a4d5ae89c715527
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 24 03:08:23 2015 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Tue Feb 24 03:08:23 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/ag.git;a=commit;h=12fc88be
Key hell.
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
---
lib/storage.rb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/storage.rb b/lib/storage.rb
index 7cba45c..29311ad 100644
--- a/lib/storage.rb
+++ b/lib/storage.rb
@@ -91,8 +91,9 @@ module Ag::Storage
# Give elasticsearch some time to process the new index
status = $es.indices.status(index: indexname)
pp status
+ pp status['indices'][indexname]['shards']
status = status['indices'][indexname]['shards'].map do |k,v|
- v['routing']['state']
+ v[0]['routing']['state']
end
pp status
while $es.cluster.health['status'] != 'green' do