share/rbbt_commands/system/optimize in rbbt-util-5.26.118 vs share/rbbt_commands/system/optimize in rbbt-util-5.26.119

- old
+ new

@@ -67,18 +67,20 @@ file_type = CMD.cmd(cmd).read.strip.partition(/:\s+/).last next unless file_type =~ /Tokyo/ type = file_type.split(", ")[1] case type when "Hash" - cmd = 'tchmgr optimize "' << file << '"' + cmd = 'tchmgr optimize' when "B+ tree" - cmd = 'tcbmgr optimize "' << file << '"' + cmd = 'tcbmgr optimize' else next end size = File.size(file) - cmd << ' -td -tl' if size > 2_000_000_000 or file_type =~ /deflate/ - Log.info "Optimizing #{type} database #{file}" + cmd << ' -td -tl' if size > 100_000_000 or file_type =~ /deflate/ + cmd << ' "' << file << '"' + Log.info "Optimizing #{type} database #{file} (#{size}): #{cmd}" + io = CMD.cmd(cmd) while line = io.gets Log.debug line end end