[Gs-commits] Grayskull Repository branch, master, updated. git-migration-126-g46c9306
A ref change was pushed to the repository containing the project "Grayskull Repository". The branch, master has been updated via 46c9306f3814616515de8706dd7f75384e78a654 (commit) from b1c7d47b2830657efe0d9cc364f9bfbea39ae8d2 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 46c9306f3814616515de8706dd7f75384e78a654 Author: Justin Wozniak <[email protected]> Date: Thu Oct 1 15:53:14 2009 -0500 Bug fix for rebuild case when object.replicas=2. ----------------------------------------------------------------------- Summary of changes: sim/gobs/gobs/sim/Metric.java | 6 +++--- sim/gobs/gobs/sim/Replicated.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) Diff of changes: diff --git a/sim/gobs/gobs/sim/Metric.java b/sim/gobs/gobs/sim/Metric.java index 4f51883..c584a76 100644 --- a/sim/gobs/gobs/sim/Metric.java +++ b/sim/gobs/gobs/sim/Metric.java @@ -49,10 +49,10 @@ public abstract class Metric // System.out.println("primary: " + primarySite.name(simulator)); if (primarySite.contains(object.id)) { + source = locateSource(object, sites); secondary = (Secondary) primarySite.remove(object.id); - source = locateSource(object, sites); - destination = primarySite; - destination.add(secondary); + destination = locateDestination(object, sites); + destination.add(secondary); } else { diff --git a/sim/gobs/gobs/sim/Replicated.java b/sim/gobs/gobs/sim/Replicated.java index 9fa708e..5356763 100644 --- a/sim/gobs/gobs/sim/Replicated.java +++ b/sim/gobs/gobs/sim/Replicated.java @@ -99,7 +99,7 @@ public abstract class Replicated /** Locate a replica of the given object on one of the given nodes - in accordance with the #sourcePrimary policy. + in accordance with the {@link #replicaSource} policy. */ Node locateSource(Obj object, List<Node> sites) { hooks/post-receive -- Grayskull Repository
participants (1)
-
noreply@mcs.anl.gov