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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2aabf946c6d6e07457499829d5e06da9203a99badceacc94cdfd5ce4abc42efe
4
- data.tar.gz: ba68e01869832af6235425f3dd142dd6c6a938545fa60cc2122295ae3137c059
3
+ metadata.gz: a05da786f18d5e3213b63cd8b393636dcbe958b2037d6a2e442b8685e67f5879
4
+ data.tar.gz: bd4c2295c35596a1a412428af79a08a121247e3435a5fb019bfe40860ba8672f
5
5
  SHA512:
6
- metadata.gz: f37a3fc2abf5ed86406174aeb9c5d6417856527e87af73ac9eabbd086d292d0a49f75c8af97ab88c38bd32f849fe65c076486ae86e60d03c2f934ad261831779
7
- data.tar.gz: 800269f00b740c8cec30952e1e3958cf66e547fb8742f643f8a40ea13e8126153a6ece33e64bd44ca2f4e1ab23e5a1534363023dfe413753722ba0e136430ef8
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 "' << file << '"'
72
+ cmd = 'tchmgr optimize'
73
73
  when "B+ tree"
74
- cmd = 'tcbmgr optimize "' << file << '"'
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 > 2_000_000_000 or file_type =~ /deflate/
80
- Log.info "Optimizing #{type} database #{file}"
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.118
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-27 00:00:00.000000000 Z
11
+ date: 2020-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake