Changeset 26294
- Timestamp:
- Nov 30, 2009, 4:56:31 PM (16 years ago)
- Location:
- trunk/Nebulous-Server/lib/Nebulous
- Files:
-
- 2 edited
-
Server.pm (modified) (2 diffs)
-
Server/SQL.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/lib/Nebulous/Server.pm
r26292 r26294 40 40 41 41 # This determines how many entries from the list of volumes sorted by free space are randomized. 42 my $topfew_count = 3;42 my $topfew_count = 15; 43 43 44 44 # transaction restart/retry regex … … 2130 2130 # %free, avaiable, allocate 2131 2131 $rows = $query->execute(0.95, 1, 1, $topfew_count); 2132 # $log->warn("Storage_volume: $rows $topfew_count"); 2132 2133 # there has to be atleast one storage volume 2133 2134 unless ($rows > 0) { -
trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm
r26292 r26294 310 310 JOIN volume 311 311 ON instance.vol_id = volume.vol_id 312 WHERE so_id = ( 313 SELECT so_id 314 FROM storage_object 315 WHERE ext_id = ? 316 ) 312 317 ) AS i 313 318 ON m.vol_id = i.vol_id 314 AND i.so_id = (315 SELECT so_id316 FROM storage_object317 WHERE ext_id = ?318 )319 319 WHERE 320 320 i.vol_id IS NULL
Note:
See TracChangeset
for help on using the changeset viewer.
