Permalink
Browse files

Minor tweak of rrpid fix.

  • Loading branch information...
1 parent f3d6804 commit 485db8de9ba0b037bea6ea03e4f52717dbeed009 @pmundkur pmundkur committed Mar 27, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 master/src/ddfs/ddfs_gc_main.erl
@@ -414,10 +414,10 @@ handle_cast({gc_done, Node, NodeStats}, #state{phase = gc,
% Start the replicator process which will
% synchronously replicate any blobs it is told to,
% and then iterate over all the blobs.
- RRPid = start_replicator(self()),
+ Sr = S#state{rr_pid = start_replicator(self())},
Start = ets:first(gc_blobs),
- rereplicate_blob(S#state{rr_pid = RRPid}, Start),
- S#state{phase = rr_blobs, rr_pid = RRPid};
+ rereplicate_blob(Sr, Start),
+ Sr#state{phase = rr_blobs};
Remaining ->
error_logger:info_report({"GC: nodes pending in gc", Remaining}),
S

0 comments on commit 485db8d

Please sign in to comment.