Posted by Anonymous on Thu 9th Aug 17:05
download
- SELECT * FROM (
- SELECT h.data_center_id, h.type, count(*) AS count
- FROM host AS h INNER JOIN mshost AS m ON h.mgmt_server_id=m.msid
- WHERE h.STATUS='Up' AND h.type='SecondaryStorage' AND m.last_update > ? GROUP BY h.data_center_id, h.type
- UNION ALL
- SELECT h.data_center_id, h.type, count(*) AS count FROM host AS h INNER JOIN mshost AS m ON h.mgmt_server_id=m.msid
- WHERE h.STATUS='Up' AND h.type='Routing' AND m.last_update > ? GROUP BY h.data_center_id, h.type
- ) AS t ORDER BY t.data_center_id, t.type
Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.