cleansweep 1.0.5 → 1.0.6
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/CHANGES.md +4 -0
- data/lib/clean_sweep/purge_runner/mysql_status.rb +10 -0
- data/lib/clean_sweep/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8ec1d586978900f85eff3d161db3a7228829272d
|
|
4
|
+
data.tar.gz: c93186b039b2c9bdf3b08d69d73e237effdde631
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b8089e971691d784346b1572ac0235bc2aa25866415ac91bada9db10bdf1c1fd2682e724148decbbf72d946ee20f4e4a05f42f90a699da11d037b8a236059cd8
|
|
7
|
+
data.tar.gz: 67cdf88125ece554602df476975702ef0898e0d47de70ed05bbc56296a53d506d42b505b028ef7ea3340bb217d928b6c3c6bcbd188d4792f0ce5ae9593cfbba2
|
data/CHANGES.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
See the [documentation](http://bkayser.github.io/cleansweep) for details
|
|
2
2
|
|
|
3
|
+
### Version 1.0.6
|
|
4
|
+
|
|
5
|
+
* Fix problem with non UTF8 characters returned in the innodb status (Thanks benweint).
|
|
6
|
+
|
|
3
7
|
### Version 1.0.5
|
|
4
8
|
|
|
5
9
|
* Fix timestamp in interval reports which was off by timezone offset in hours.
|
|
@@ -76,6 +76,16 @@ class CleanSweep::PurgeRunner::MysqlStatus
|
|
|
76
76
|
show engine innodb status
|
|
77
77
|
EOF
|
|
78
78
|
status_string = rows.first[2]
|
|
79
|
+
|
|
80
|
+
# This output of 'show engine innnodb status' contains a bunch of
|
|
81
|
+
# information, including info about the most recently detected deadlock,
|
|
82
|
+
# which has the involved queries, which may contain invalid UTF-8 byte
|
|
83
|
+
# sequences.
|
|
84
|
+
#
|
|
85
|
+
# Forcing the encoding to ASCII-8BIT here prevents the regex match below
|
|
86
|
+
# from falling over when this happens.
|
|
87
|
+
status_string.force_encoding('ASCII-8BIT')
|
|
88
|
+
|
|
79
89
|
return /History list length ([0-9]+)/.match(status_string)[1].to_i
|
|
80
90
|
end
|
|
81
91
|
|
data/lib/clean_sweep/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cleansweep
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bill Kayser
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-05-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|
|
@@ -205,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
205
205
|
version: '0'
|
|
206
206
|
requirements: []
|
|
207
207
|
rubyforge_project:
|
|
208
|
-
rubygems_version: 2.
|
|
208
|
+
rubygems_version: 2.2.2
|
|
209
209
|
signing_key:
|
|
210
210
|
specification_version: 4
|
|
211
211
|
summary: Utility to purge or archive rows in mysql tables
|
|
@@ -217,4 +217,3 @@ test_files:
|
|
|
217
217
|
- spec/purge_runner_spec.rb
|
|
218
218
|
- spec/spec_helper.rb
|
|
219
219
|
- spec/table_schema_spec.rb
|
|
220
|
-
has_rdoc:
|