Changeset 17753
- Timestamp:
- May 19, 2008, 3:47:08 PM (18 years ago)
- Location:
- trunk/Nebulous-Server
- Files:
-
- 3 edited
-
Changes (modified) (1 diff)
-
lib/Nebulous/Server.pm (modified) (3 diffs)
-
t/07_server_find_instances.t (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/Changes
r17716 r17753 2 2 3 3 0.11 4 - add support for the magical ':any' volume to 5 Nebulous::Server:find_instances() 4 6 - call sync on newly created files from 5 7 Nebulous::Server::_create_empty_file() -
trunk/Nebulous-Server/lib/Nebulous/Server.pm
r17716 r17753 1 1 # Copyright (c) 2004-2008 Joshua Hoblitt 2 2 # 3 # $Id: Server.pm,v 1.7 2 2008-05-16 20:22:29jhoblitt Exp $3 # $Id: Server.pm,v 1.73 2008-05-20 01:47:08 jhoblitt Exp $ 4 4 5 5 package Nebulous::Server; … … 928 928 } 929 929 930 # handle :any volume 931 if ($vol_name eq ':any') { 932 $vol_name = undef; 933 } 934 930 935 my @locations; 931 936 eval { … … 1228 1233 my $db =$self->db; 1229 1234 1235 # handle ":any" volume 1236 if ($vol_name eq ':any') { 1237 return 1; 1238 } 1239 1230 1240 my ($vol_id, $vol_path); 1231 1241 eval { -
trunk/Nebulous-Server/t/07_server_find_instances.t
r17539 r17753 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 07_server_find_instances.t,v 1.1 1 2008-05-06 22:10:58 jhoblitt Exp $5 # $Id: 07_server_find_instances.t,v 1.12 2008-05-20 01:47:08 jhoblitt Exp $ 6 6 7 7 use strict; 8 8 use warnings FATAL => qw( all ); 9 9 10 use Test::More tests => 1 7;10 use Test::More tests => 19; 11 11 12 12 use lib qw( ./t ./lib ); … … 75 75 76 76 { 77 # key, volume 78 my $uri = $neb->create_object('foo', 'node01'); 79 80 my $locations = $neb->find_instances('neb://node02/foo', ":any"); 81 82 uri_scheme_ok($locations->[0], 'file'); 83 is($uri, $locations->[0], "URIs match"); 84 } 85 86 Test::Nebulous->setup; 87 88 { 77 89 # key 78 90 my $uri1 = $neb->create_object("foo");
Note:
See TracChangeset
for help on using the changeset viewer.
