[Groonga-commit] groonga/gcs [master] Don't reindex existing field if new type is same to current one

Zurück zum Archiv-Index

YUKI Hiroshi null+****@clear*****
Thu Nov 15 19:58:06 JST 2012


YUKI Hiroshi	2012-11-15 19:58:06 +0900 (Thu, 15 Nov 2012)

  New Revision: 380732279d5b48231df1e9a258bfb2f980a8e700
  https://github.com/groonga/gcs/commit/380732279d5b48231df1e9a258bfb2f980a8e700

  Log:
    Don't reindex existing field if new type is same to current one

  Modified files:
    lib/database/index-field.js

  Modified: lib/database/index-field.js (+1 -1)
===================================================================
--- lib/database/index-field.js    2012-11-15 19:22:52 +0900 (7f5598d)
+++ lib/database/index-field.js    2012-11-15 19:58:06 +0900 (3b3ea0d)
@@ -204,7 +204,7 @@ IndexField.prototype = {
   },
   set type(type) {
     assertValidFieldType(type);
-    if (this.exists()) {
+    if (this.exists() && type != this.type) {
       this.changeTypeToSync(type);
     } else {
       this._type = type;
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index