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

sartak at bestpractical.com sartak at bestpractical.com
Fri May 16 07:41:59 EDT 2008


Author: sartak
Date: Fri May 16 07:41:58 2008
New Revision: 12382

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

Log:
 r55980 at onn:  sartak | 2008-05-16 07:38:13 -0400
 Stick all of the metadata of local-id-cache in the _meta key, and delete it from the reverse mapping so it doesn't interfere


Modified: Prophet/branches/luid/lib/Prophet/Replica.pm
==============================================================================
--- Prophet/branches/luid/lib/Prophet/Replica.pm	(original)
+++ Prophet/branches/luid/lib/Prophet/Replica.pm	Fri May 16 07:41:58 2008
@@ -573,7 +573,7 @@
     my $self = shift;
     my $map  = shift;
 
-    return ++$map->{'_maximum_luid'};
+    return ++$map->{'_meta'}{'maximum_luid'};
 }
 
 sub _guid2luid_file { "local-id-cache" }
@@ -603,6 +603,7 @@
 sub _read_luid2guid_mappings {
     my $self = shift;
     my $guid2luid = $self->_read_guid2luid_mappings(@_);
+    delete $guid2luid->{'_meta'};
     my %luid2guid = reverse %$guid2luid;
     return \%luid2guid;
 }



More information about the Bps-public-commit mailing list