[Bps-public-commit] r12438 - in Prophet/trunk: .
jesse at bestpractical.com
jesse at bestpractical.com
Sat May 17 05:30:42 EDT 2008
Author: jesse
Date: Sat May 17 05:30:41 2008
New Revision: 12438
Modified:
Prophet/trunk/ (props changed)
Prophet/trunk/lib/Prophet/Replica/Native.pm
Log:
r31103 at dhcp113 (orig r12372): sartak | 2008-05-16 18:23:01 +0900
r55960 at onn: sartak | 2008-05-16 05:22:50 -0400
Return an empty hash if the mapping file doesn't exist
Modified: Prophet/trunk/lib/Prophet/Replica/Native.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/Replica/Native.pm (original)
+++ Prophet/trunk/lib/Prophet/Replica/Native.pm Sat May 17 05:30:41 2008
@@ -657,6 +657,9 @@
sub _read_guid2luid_mappings {
my $self = shift;
+
+ return {} if !$self->_file_exists($self->_guid2luid_file)
+
return from_json($self->_read_file($self->_guid2luid_file), { utf8 => 1 });
}
More information about the Bps-public-commit
mailing list