...nit the thread pool 2011-12-01 22:17:06 worker1[5106] event server start (FLAG:0x0004) 2011-12-01 22:17:06 worker2[5107] event server start (FLAG:0x0004) 2011-12-01 22:17:06 worker3[5108] event server start (FLAG:0x0004) 2011-12-01 22:21:07 ~master[5105] caught SIGINT, shutdown gracefully 2011-...
....php#L185 (显示) public function reopen($force = false){ if ($this->_flag & self::BROKEN || $force === true) { $this->open($this->_conn); } return $this;} 重新打开连接 仅应用于曾经成功打开的连并且异常关闭了
...n hasRespond(){ // check socket if ($this->_sock === null || $this->_flag & (self::BROKEN | self::FILE)) { return false; } $wfds = $xfds = array(); $rfds = array($this->_sock); $res = stream_select($rfds, $wfds, $xfds, 0, 0); return $res > 0;} 判断服务端是否有...
...der($asc = false){ $type = XS_CMD_SORT_TYPE_DOCID | ($asc ? XS_CMD_SORT_FLAG_ASCENDING : 0); $cmd = new XSCommand(XS_CMD_SEARCH_SET_SORT, $type); $this->execCommand($cmd); return $this;} 设置结果按索引入库先后排序 注意, 此项排序不影响相关排序, 权重高的...
...采用非内存模式的词典时,返回的查结结果中(word_st)...->flag的属性包含怕 SCWS_WORD_MALLOCED 与 SCWS_ZFLAG_SYMBOL 定义冲突,以至于被当作符号文字从而未能进行正确的人名识别。 现已经修正。详见:http://www.ftphp.com/scws 的下载页
...ndex = self tokenizer = full [fid] index = self tokenizer = full [flag] [/code] mysql数据库,sample.sql [code]-- -- Table structure for table `sample` -- CREATE TABLE IF NOT EXISTS `sample` ( `id` int(12) unsigned NOT NULL AUTO_INCREMENT, `subject` varchar(1024) NOT NULL...
...1083121(299.0/s), sock:7, name:"demo", home:"data/demo", rcv_size:8, flag:0x0000, version:"1.4.7" } ---------- SERVER INFO BEGIN ---------- { id:"worker1", uptime:157312, num_burst:0, max_burst:56, num_accept:436479, aps:2.8, num_task:1213522, tps:7.7, sock:7, name:"demo", home:"...
...isions) 2013-08-14 12:17:00 indexd[16564] NOTICE import exit (DB:item.db, FLAG:0x0000, PID:69002, EXIT:-1) 2013-08-14 12:17:20 indexd[16564] NOTICE commit index data (DB:item.db, COUNT:469) 2013-08-14 12:17:20 indexd[16564] NOTICE priority use unfinished sndfile (FILE:tmp/item_db.snd) 12:17:20 i...
...1083121(299.0/s), sock:7, name:"demo", home:"data/demo", rcv_size:8, flag:0x0000, version:"1.4.5-dev" } ---------- SERVER INFO BEGIN ---------- { id:"worker1", uptime:157312, num_burst:0, max_burst:56, num_accept:436479, aps:2.8, num_task:1213522, tps:7.7, sock:7, name:"demo", ho...
...o open local file for writing: `' . $conn . '\''); } $this->_flag |= self::FILE; $this->_sock = $sock; return; } elseif (($pos = strpos($conn, ':')) !== false) { $host = substr($conn, 0, $pos); $port = intval(substr($conn, $pos + 1)); } else { $...