flydata 0.3.15 → 0.3.16

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: 2092338e5191e9b77804e78ba3aef0a667d2fba2
4
- data.tar.gz: f2f65e5850da6e1e77be386d8b1fdcf4ab3a6a00
3
+ metadata.gz: bc252c8c78f6a02191959f35982336680914d5e5
4
+ data.tar.gz: 26741fa0cb11f348e821d25b4664a2e43e5e5afa
5
5
  SHA512:
6
- metadata.gz: 693815184571882684724fdf9e0eab6f9f16142c335ddc0e47c2cdcd59adf0d8789ac7113f0796f64cbbd7aad3d2939ac325d13ba1a3bdb565f0b5d82b597df0
7
- data.tar.gz: a2b9def6f55162b7098d34daa2b881b2919594ab642d772797caa6229d482a2b416fc976ec504010d0f59bd473ed5c2596eecff14112d9f9b072ffe1c0d2b1dc
6
+ metadata.gz: c1c78e3a5d5602a1b54081c6260996f5d5558f99464f6ee17ab7e9b93e85b711ae2d4bd4ea729e9f3182065eca4cf96803e69e4bb94771f858060395110ee118
7
+ data.tar.gz: 2af8cf366832e48235e03691b9d342ac21fc9bc6a751eb666817f21f245490a4653ef88d5a959930ff6c86709090c537bdf87078b08db8b335b63676bca7f3a3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.15
1
+ 0.3.16
data/flydata.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: flydata 0.3.15 ruby lib
5
+ # stub: flydata 0.3.16 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "flydata"
9
- s.version = "0.3.15"
9
+ s.version = "0.3.16"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Koichi Fujikawa", "Masashi Miyazaki", "Matthew Luu", "Mak Inada", "Sriram NS"]
14
- s.date = "2015-04-19"
14
+ s.date = "2015-04-21"
15
15
  s.description = "FlyData Agent"
16
16
  s.email = "sysadmin@flydata.com"
17
17
  s.executables = ["fdmysqldump", "flydata", "serverinfo"]
@@ -12,7 +12,7 @@ module Flydata
12
12
 
13
13
  def mysql_cli(conf = nil)
14
14
  mysql_conf(conf) if conf
15
- return FdMysqlClient.new(@mysql_conf) if @mysql_conf
15
+ return FlydataMysqlClient.new(@mysql_conf) if @mysql_conf
16
16
  nil
17
17
  end
18
18
  end
@@ -159,7 +159,7 @@ EOS
159
159
 
160
160
  def create_table_locker
161
161
  Fiber.new do
162
- client = FdMysqlClient.new(@db_opts)
162
+ client = FlydataMysqlClient.new(@db_opts)
163
163
  # Lock tables
164
164
  client.query "FLUSH LOCAL TABLES;"
165
165
  q = flush_tables_with_read_lock_query(client)
@@ -211,12 +211,13 @@ EOS
211
211
  # Custom mysql client that sets config params (eg:-read_timeout) uniformly for all
212
212
  # mysql access. Also, gives access to the last query that was executed using the client
213
213
  # which can be helpful when handling exceptions
214
- class FdMysqlClient < Mysql2::Client
214
+ class FlydataMysqlClient < Mysql2::Client
215
215
 
216
216
  attr_accessor :last_query
217
217
 
218
218
  def initialize(db_opts)
219
- super(db_opts.merge(read_timeout: 600))
219
+ #TODO : Pass timeout in as a setting from the data entry
220
+ super(db_opts.merge(read_timeout: 1800))
220
221
  end
221
222
 
222
223
  def query(sql, options = {})
@@ -79,7 +79,7 @@ module Flydata
79
79
  end
80
80
  end
81
81
 
82
- describe FdMysqlClient do
82
+ describe FlydataMysqlClient do
83
83
  let(:db_opts) do
84
84
  {
85
85
  host: 'localhost',
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flydata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.15
4
+ version: 0.3.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Koichi Fujikawa
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-04-19 00:00:00.000000000 Z
15
+ date: 2015-04-21 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rest-client