Index: /trunk/Nebulous-Server/Changes
===================================================================
--- /trunk/Nebulous-Server/Changes	(revision 19143)
+++ /trunk/Nebulous-Server/Changes	(revision 19144)
@@ -1,3 +1,7 @@
 Revision history for Nebulous
+
+0.14 Wed Aug 20 16:25:43 HST 2008
+    - change the get_replication_volume_for_ext_id query to choose a storage
+      volume (that meets the critera) at random
 
 0.13 Wed Jul  9 16:36:27 HST 2008
Index: /trunk/Nebulous-Server/lib/Nebulous/Server.pm
===================================================================
--- /trunk/Nebulous-Server/lib/Nebulous/Server.pm	(revision 19143)
+++ /trunk/Nebulous-Server/lib/Nebulous/Server.pm	(revision 19144)
@@ -1,5 +1,5 @@
 # Copyright (c) 2004-2008  Joshua Hoblitt
 #
-# $Id: Server.pm,v 1.82 2008-08-12 23:53:40 jhoblitt Exp $
+# $Id: Server.pm,v 1.83 2008-08-21 02:26:58 jhoblitt Exp $
 
 package Nebulous::Server;
@@ -9,5 +9,5 @@
 no warnings qw( uninitialized );
 
-our $VERSION = '0.13';
+our $VERSION = '0.14';
 
 use base qw( Class::Accessor::Fast );
Index: /trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm
===================================================================
--- /trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm	(revision 19143)
+++ /trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm	(revision 19144)
@@ -1,5 +1,5 @@
 # Copyright (c) 2004  Joshua Hoblitt
 #
-# $Id: SQL.pm,v 1.62 2008-07-07 23:37:48 jhoblitt Exp $
+# $Id: SQL.pm,v 1.63 2008-08-21 02:26:58 jhoblitt Exp $
 
 package Nebulous::Server::SQL;
@@ -251,5 +251,5 @@
             AND available = ? 
             AND allocate = ? 
-        ORDER BY free DESC
+        ORDER BY RAND()
         LIMIT 1
     },
