IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 20, 2008, 4:26:58 PM (18 years ago)
Author:
jhoblitt
Message:

change the get_replication_volume_for_ext_id query to choose a storage volume (that meets the critera) at random

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm

    r18434 r19144  
    11# Copyright (c) 2004  Joshua Hoblitt
    22#
    3 # $Id: SQL.pm,v 1.62 2008-07-07 23:37:48 jhoblitt Exp $
     3# $Id: SQL.pm,v 1.63 2008-08-21 02:26:58 jhoblitt Exp $
    44
    55package Nebulous::Server::SQL;
     
    251251            AND available = ?
    252252            AND allocate = ?
    253         ORDER BY free DESC
     253        ORDER BY RAND()
    254254        LIMIT 1
    255255    },
Note: See TracChangeset for help on using the changeset viewer.