[Bps-public-commit] r12448 - in Prophet/trunk: .

jesse at bestpractical.com jesse at bestpractical.com
Sat May 17 05:32:47 EDT 2008


Author: jesse
Date: Sat May 17 05:32:47 2008
New Revision: 12448

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

Log:
 r31113 at dhcp113 (orig r12382):  sartak | 2008-05-16 20:41:58 +0900
  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/trunk/lib/Prophet/Replica.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/Replica.pm	(original)
+++ Prophet/trunk/lib/Prophet/Replica.pm	Sat May 17 05:32:47 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