Changeset 24639 for trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm
- Timestamp:
- Jul 1, 2009, 6:40:27 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm
r24638 r24639 83 83 stat_object => qq{ 84 84 SELECT 85 storage_object.so_id, 86 storage_object.ext_id, 87 read_lock, 88 write_lock, 89 storage_object_attr.epoch, 90 storage_object_attr.mtime, 91 COUNT(instance.so_id) as instances 92 FROM storage_object 93 JOIN storage_object_attr 85 so.so_id, 86 so.ext_id, 87 attr.read_lock, 88 attr.write_lock, 89 attr.epoch, 90 attr.mtime, 91 COUNT(instance.so_id) as instances, 92 SUM(available) as available 93 FROM storage_object as so 94 JOIN storage_object_attr as attr 94 95 USING (so_id) 95 96 JOIN instance 96 97 USING (so_id) 97 WHERE ext_id = ? 98 GROUP BY storage_object.so_id 98 LEFT JOIN mountedvol 99 USING(vol_id) 100 WHERE ext_id = ? 101 GROUP BY so.so_id 99 102 }, 100 103 # Note: this sets an update lock
Note:
See TracChangeset
for help on using the changeset viewer.
