[Bps-public-commit] r12372 - in Prophet/branches/luid: lib/Prophet/Replica

sartak at bestpractical.com sartak at bestpractical.com
Fri May 16 05:23:03 EDT 2008


Author: sartak
Date: Fri May 16 05:23:01 2008
New Revision: 12372

Modified:
   Prophet/branches/luid/   (props changed)
   Prophet/branches/luid/lib/Prophet/Replica/Native.pm

Log:
 r55960 at onn:  sartak | 2008-05-16 05:22:50 -0400
 Return an empty hash if the mapping file doesn't exist


Modified: Prophet/branches/luid/lib/Prophet/Replica/Native.pm
==============================================================================
--- Prophet/branches/luid/lib/Prophet/Replica/Native.pm	(original)
+++ Prophet/branches/luid/lib/Prophet/Replica/Native.pm	Fri May 16 05:23:01 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