bin/sekka-server in sekka-1.0.0 vs bin/sekka-server in sekka-1.1.0.pre

- old
+ new

@@ -14,20 +14,21 @@ DICTURL = "https://raw.github.com/kiyoka/sekka/master/public_dict/" + SekkaVersion.dictVersion PIDFILE = DICTDIR + "/pid" -TC_FILE = DICTDIR + "/SEKKA-JISYO.SMALL.tch" +TC_OPTS = "#xmsiz=256m" +TC_FILE = DICTDIR + "/SEKKA-JISYO.SMALL.tch" + TC_OPTS TSVFILE = DICTDIR + "/SEKKA-JISYO.SMALL.tsv" SUMFILE = DICTDIR + "/SEKKA-JISYO.SMALL.md5" URLURL = DICTURL + "/SEKKA-JISYO.SMALL.url" SUMURL = DICTURL + "/SEKKA-JISYO.SMALL.md5" -TC_FILE_LIST = [ DICTDIR + "/SEKKA-JISYO.CUSTOM.tch", - DICTDIR + "/SEKKA-JISYO.LARGE.tch", - DICTDIR + "/SEKKA-JISYO.SMALL.tch" ] +TC_FILE_LIST = [ DICTDIR + "/SEKKA-JISYO.CUSTOM.tch" + TC_OPTS, + DICTDIR + "/SEKKA-JISYO.LARGE.tch" + TC_OPTS, + DICTDIR + "/SEKKA-JISYO.SMALL.tch" + TC_OPTS ] MEMCACHED = "localhost:11211" # memcahced def getSekkaDbInfo( env ) if env.has_key?( 'SEKKA_DB' ) @@ -109,10 +110,10 @@ # 環境変数から、DBの接続先情報を取得する。 ( dictType, dictSource ) = getSekkaDbInfo( ENV ) case dictType when :tokyocabinet - # .tchファイルが存在すうるか調べる + # .tchファイルが存在するか調べる list = TC_FILE_LIST.select { |name| File.exist?( name ) } if 0 == list.size # tsvファイルをTokyo CabinetのHashDB化する STDERR.printf( "Info: Converting TSV file to Tokyo Cabinet *.tch\n" )