[Groonga-commit] droonga/express-droonga at 2813d8e [master] Return sorted host names

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Oct 30 12:14:40 JST 2014


YUKI Hiroshi	2014-10-30 12:14:40 +0900 (Thu, 30 Oct 2014)

  New Revision: 2813d8e65c3611fba316cdbfc51189cf4a2c40c0
  https://github.com/droonga/express-droonga/commit/2813d8e65c3611fba316cdbfc51189cf4a2c40c0

  Message:
    Return sorted host names

  Modified files:
    lib/catalog/v2.js

  Modified: lib/catalog/v2.js (+2 -2)
===================================================================
--- lib/catalog/v2.js    2014-10-30 12:14:31 +0900 (da32b9e)
+++ lib/catalog/v2.js    2014-10-30 12:14:40 +0900 (b722077)
@@ -13,7 +13,7 @@ CatalogV2.prototype = {
         uniqueHostNames[hostName] = true;
       });
     });
-    return this._allHostNames = Object.keys(uniqueHostNames);
+    return this._allHostNames = Object.keys(uniqueHostNames).sort();
   },
   get datasets() {
     if (this._datasets)
@@ -52,7 +52,7 @@ VolumeCollectionOwner.prototype = {
     if (this.ownVolume)
       uniqueHostNames[this.ownVolume.hostName] = true;
 
-    return this._allHostNames = Object.keys(uniqueHostNames);
+    return this._allHostNames = Object.keys(uniqueHostNames).sort();
   },
 
   get replicas() {
-------------- next part --------------
HTML����������������������������...
Download 



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