Changeset 13180 for trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm
- Timestamp:
- May 2, 2007, 5:21:28 PM (19 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
r13177 r13180 1 1 # Copyright (c) 2004 Joshua Hoblitt 2 2 # 3 # $Id: SQL.pm,v 1.3 5 2007-05-03 01:49:55jhoblitt Exp $3 # $Id: SQL.pm,v 1.36 2007-05-03 03:21:28 jhoblitt Exp $ 4 4 5 5 package Nebulous::Server::SQL; … … 53 53 get_object => qq{ 54 54 SELECT 55 s torage_object.so_id,55 so_id, 56 56 ext_id, 57 57 read_lock, … … 63 63 USING (so_id) 64 64 WHERE ext_id = ? 65 }, 66 stat_object => qq{ 67 SELECT 68 storage_object.so_id, 69 storage_object.ext_id, 70 read_lock, 71 write_lock, 72 storage_object_attr.epoch, 73 storage_object_attr.mtime, 74 COUNT(instance.so_id) as instances 75 FROM storage_object 76 JOIN storage_object_attr 77 USING (so_id) 78 JOIN instance 79 USING (so_id) 80 WHERE ext_id = ? 81 GROUP BY storage_object.so_id 65 82 }, 66 83 # Note: this sets an update lock
Note:
See TracChangeset
for help on using the changeset viewer.
