[Groonga-commit] groonga/gcs [master] Delete index field only if it exists

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Nov 16 17:55:11 JST 2012


YUKI Hiroshi	2012-11-16 17:55:11 +0900 (Fri, 16 Nov 2012)

  New Revision: ad95cf2bb1e3563eef966ff1a1b9e479c25985a7
  https://github.com/groonga/gcs/commit/ad95cf2bb1e3563eef966ff1a1b9e479c25985a7

  Log:
    Delete index field only if it exists

  Modified files:
    lib/api/2011-02-01/configuration.js

  Modified: lib/api/2011-02-01/configuration.js (+1 -2)
===================================================================
--- lib/api/2011-02-01/configuration.js    2012-11-16 17:54:03 +0900 (01eaac8)
+++ lib/api/2011-02-01/configuration.js    2012-11-16 17:55:11 +0900 (22e2f06)
@@ -382,10 +382,9 @@ handlers.DeleteIndexField = function(context, request, response, config) {
       createdAt: createdAt,
       updatedAt: createdAt
     });
+    field.deleteSync();
   }
 
-  field.deleteSync();
-
   response.contentType('application/xml');
   response.send(createGenericResponse('DeleteIndexField', result, request.id));
 };
-------------- next part --------------
HTML����������������������������...
下载 



More information about the Groonga-commit mailing list
Back to archive index