Changeset 20030 for trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm
- Timestamp:
- Oct 9, 2008, 1:27:44 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm
r20023 r20030 1 1 # Copyright (c) 2004 Joshua Hoblitt 2 2 # 3 # $Id: SQL.pm,v 1.7 0 2008-10-09 21:30:10jhoblitt Exp $3 # $Id: SQL.pm,v 1.71 2008-10-09 23:27:44 jhoblitt Exp $ 4 4 5 5 package Nebulous::Server::SQL; … … 293 293 volume.name as volume_name, 294 294 volume.host as volume_host, 295 count(m ountedvol.vol_id) as available_instances,296 count(m ountedvol.vol_id) > 0 as recoverable,295 count(mymountedvol.vol_id) as available_instances, 296 count(mymountedvol.vol_id) > 0 as recoverable, 297 297 storage_object_xattr.value as copies 298 298 FROM storage_object … … 303 303 LEFT JOIN storage_object_xattr 304 304 ON storage_object.so_id = storage_object_xattr.so_id 305 JOIN m ountedvol305 JOIN mymountedvol 306 306 USING(vol_id) 307 WHERE m ountedvol.available = 1307 WHERE mymountedvol.available = 1 308 308 -- WHERE storage_object_xattr.name = 'user.copies' 309 309 GROUP BY so_id
Note:
See TracChangeset
for help on using the changeset viewer.
