Changeset e0dd1f13


Ignore:
Timestamp:
Aug 27, 2009 3:29:23 PM (11 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
a3f290e
Parents:
787def6
Message:

keep publishing leaseset if we are restarting, to minimize downtime

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/networkdb/kademlia/KademliaNetworkDatabaseFacade.java

    r787def6 re0dd1f13  
    491491        if (!_context.clientManager().shouldPublishLeaseSet(h))
    492492            return;
    493         if (_context.router().gracefulShutdownInProgress())
    494             return;
     493        // If we're exiting, don't publish.
     494        // If we're restarting, keep publishing to minimize the downtime.
     495        if (_context.router().gracefulShutdownInProgress()) {
     496            int code = _context.router().scheduledGracefulExitCode();
     497            if (code == Router.EXIT_GRACEFUL || code == Router.EXIT_HARD)
     498                return;
     499        }
    495500       
    496501        RepublishLeaseSetJob j = null;
Note: See TracChangeset for help on using the changeset viewer.