rbbt-util 5.26.118 → 5.26.119
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/share/rbbt_commands/system/optimize +6 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a05da786f18d5e3213b63cd8b393636dcbe958b2037d6a2e442b8685e67f5879
|
4
|
+
data.tar.gz: bd4c2295c35596a1a412428af79a08a121247e3435a5fb019bfe40860ba8672f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdd5b632c8c5688f803bac8b8b7130a68ad7d005fe3eb39c30f560bff9503049ceadc45773abde44a3b51fafe0d68b2d388e04a53943b931246d3ac758cc70e4
|
7
|
+
data.tar.gz: aae462bea2017e83303781947e1b0fc446a5ae3fd877e790c21b6280f3b45dd7650190039a2fbcc76234d666e07eb6b6f657855d32ee8e0be1b0e2ed835ce637
|
@@ -69,15 +69,17 @@ TSV.traverse all_files, :type => :array, :bar => "Processing Tokyo Cabinet files
|
|
69
69
|
type = file_type.split(", ")[1]
|
70
70
|
case type
|
71
71
|
when "Hash"
|
72
|
-
cmd = 'tchmgr optimize
|
72
|
+
cmd = 'tchmgr optimize'
|
73
73
|
when "B+ tree"
|
74
|
-
cmd = 'tcbmgr optimize
|
74
|
+
cmd = 'tcbmgr optimize'
|
75
75
|
else
|
76
76
|
next
|
77
77
|
end
|
78
78
|
size = File.size(file)
|
79
|
-
cmd << ' -td -tl' if size >
|
80
|
-
|
79
|
+
cmd << ' -td -tl' if size > 100_000_000 or file_type =~ /deflate/
|
80
|
+
cmd << ' "' << file << '"'
|
81
|
+
Log.info "Optimizing #{type} database #{file} (#{size}): #{cmd}"
|
82
|
+
|
81
83
|
io = CMD.cmd(cmd)
|
82
84
|
while line = io.gets
|
83
85
|
Log.debug line
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbbt-util
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.26.
|
4
|
+
version: 5.26.119
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|