Skip to content

Commit

Permalink
broadcast: Fix expiration of dynamic subscribers
Browse files Browse the repository at this point in the history
Addresses the issue that HSM cleaner is broken as it newer
receives pool-up notifications.

BroadcastRegistrationTask supplies a relative timeout, but the
broadcast registration cell expects an absolute timeout.

Target: trunk
Request: 2.6
Request: 2.2
Require-notes: yes
Require-book: no
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: http://rb.dcache.org/r/5601/
(cherry picked from commit 6276fca)
  • Loading branch information
gbehrmann committed May 31, 2013
1 parent 9b9d76c commit 9e9250e
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -186,8 +186,7 @@ private OptionClass( Args args ){

String tmp = args.getOpt("expires") ;
if( tmp != null ) {
expires = Long.parseLong(tmp) * 1000L + System
.currentTimeMillis();
expires = Long.parseLong(tmp) * 1000L;
}

tmp = args.getOpt("cancelonfailure") ;
Expand Down Expand Up @@ -365,7 +364,7 @@ private void handleBroadcastCommandMessage( CellMessage msg , BroadcastCommandMe
}
long expires = reg.getExpires() ;
if( expires > 0 ) {
entry.setExpires(expires);
entry.setExpires(expires + System.currentTimeMillis());
}
}
}else if( event instanceof BroadcastUnregisterMessage ){
Expand Down

0 comments on commit 9e9250e

Please sign in to comment.