Kouhei Sutou
null+****@clear*****
Sun Mar 2 15:51:25 JST 2014
Kouhei Sutou 2014-03-02 15:51:25 +0900 (Sun, 02 Mar 2014) New Revision: 52188ed25ce5212f19d0d24d78bf1e7ba5b4d26c https://github.com/groonga/gcs/commit/52188ed25ce5212f19d0d24d78bf1e7ba5b4d26c Message: Don't remove lexicon table on reindexing Because the lexicon table may be referred. If the lexicon table is removed and recreated, the ID of the lexicon table is changed. It makes dangling pointers. Now, GCS tests work again! Yay! Modified files: lib/database/index-field.js Modified: lib/database/index-field.js (+0 -8) =================================================================== --- lib/database/index-field.js 2014-03-02 15:49:27 +0900 (8301039) +++ lib/database/index-field.js 2014-03-02 15:51:25 +0900 (71e99a4) @@ -652,14 +652,6 @@ IndexField.prototype = { table: this.indexTableName, name: this.indexColumnName }); - this.context.commandSync('table_remove', { - name: this.indexTableName - }); - this.context.commandSync('table_create', { - name: this.indexTableName, - flags: nroonga.TABLE_PAT_KEY, - key_type: this.indexTableKeyType - }); this.context.commandSync('column_create', { table: this.indexTableName, name: this.indexColumnName, -------------- next part -------------- HTML����������������������������...Download