flydata 0.3.15 → 0.3.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/flydata.gemspec +3 -3
- data/lib/flydata/parser/mysql/dump_parser.rb +5 -4
- data/spec/flydata/parser/mysql/dump_parser_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc252c8c78f6a02191959f35982336680914d5e5
|
4
|
+
data.tar.gz: 26741fa0cb11f348e821d25b4664a2e43e5e5afa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1c78e3a5d5602a1b54081c6260996f5d5558f99464f6ee17ab7e9b93e85b711ae2d4bd4ea729e9f3182065eca4cf96803e69e4bb94771f858060395110ee118
|
7
|
+
data.tar.gz: 2af8cf366832e48235e03691b9d342ac21fc9bc6a751eb666817f21f245490a4653ef88d5a959930ff6c86709090c537bdf87078b08db8b335b63676bca7f3a3
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
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.
|
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.
|
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-
|
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
|
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 =
|
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
|
214
|
+
class FlydataMysqlClient < Mysql2::Client
|
215
215
|
|
216
216
|
attr_accessor :last_query
|
217
217
|
|
218
218
|
def initialize(db_opts)
|
219
|
-
|
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 = {})
|
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.
|
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-
|
15
|
+
date: 2015-04-21 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rest-client
|