diff options
author | 2015-02-23 19:19:07 -0800 | |
---|---|---|
committer | 2015-02-23 19:19:07 -0800 | |
commit | e55ce719ed5c077913d1e9e39b4982e6ed34b472 (patch) | |
tree | 858848540d15b8bb1870938befc3e316e636e391 | |
parent | Work on the index. (diff) | |
download | backend-e55ce719ed5c077913d1e9e39b4982e6ed34b472.tar.gz backend-e55ce719ed5c077913d1e9e39b4982e6ed34b472.tar.bz2 backend-e55ce719ed5c077913d1e9e39b4982e6ed34b472.zip |
more print.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r-- | lib/storage.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/storage.rb b/lib/storage.rb index 6e41ed7..8828bf6 100644 --- a/lib/storage.rb +++ b/lib/storage.rb @@ -89,8 +89,8 @@ module Ag::Storage }) # Give elasticsearch some time to process the new index + status = $es.indices.status(index: indexname) while $es.cluster.health['status'] != 'green' do - status = $es.indices.status(index: indexname) pp status pp status['indices'][indexname]['shards'] status = status['indices'][indexname]['shards'].map do |k,v| @@ -98,6 +98,7 @@ module Ag::Storage end pp status sleep 0.01 + status = $es.indices.status(index: indexname) end pp $es.indices.status(index: indexname) end |