[Groonga-commit] groonga/gcs [master] Don't return domain status of not-existing domains by DescribeDomain

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Oct 18 15:54:22 JST 2012


YUKI Hiroshi	2012-10-18 15:54:22 +0900 (Thu, 18 Oct 2012)

  New Revision: 3747d4ef59c495c43c03acef6820d625484aaae5
  https://github.com/groonga/gcs/commit/3747d4ef59c495c43c03acef6820d625484aaae5

  Log:
    Don't return domain status of not-existing domains by DescribeDomain

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

  Modified: lib/api/2011-02-01/configuration.js (+4 -1)
===================================================================
--- lib/api/2011-02-01/configuration.js    2012-10-18 14:53:20 +0900 (ea027fd)
+++ lib/api/2011-02-01/configuration.js    2012-10-18 15:54:22 +0900 (1efaeac)
@@ -151,7 +151,10 @@ handlers.DescribeDomains = function(context, request, response, config) {
         });
     var domains = domainNames.length ?
                     domainNames.map(function(name) {
-                      return new Domain(name, context);
+                      var domain = new Domain(name, context);
+                      return domain.exists() ? domain : null ;
+                    }).filter(function(domain) {
+                      return domain;
                     }) :
                     Domain.getAll(context) ;
     var result = createDomainStatusList({
-------------- next part --------------
HTML����������������������������...
Download 



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