r1780 + sort LB list for RS pool by VS id as well (in case same LB exports same pool...
authorDenis Ovsienko <infrastation@yandex.ru>
Fri, 14 Mar 2008 14:43:50 +0000 (14:43 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Fri, 14 Mar 2008 14:43:50 +0000 (14:43 +0000)
inc/database.php

index bb8c515..756c824 100644 (file)
@@ -1949,7 +1949,8 @@ function getRSPoolInfo ($id = 0)
        unset ($result);
        $ret['lblist'] = array();
        $ret['rslist'] = array();
-       $query2 = "select object_id, vs_id, vsconfig, rsconfig from IPLoadBalancer where rspool_id = ${id} order by object_id";
+       $query2 = "select object_id, vs_id, vsconfig, rsconfig from IPLoadBalancer " .
+               "where rspool_id = ${id} order by object_id, vs_id";
        $result = useSelectBlade ($query2);
        while ($row = $result->fetch (PDO::FETCH_ASSOC))
                foreach (array ('vsconfig', 'rsconfig') as $c)