Changeset 8a756a6


Ignore:
Timestamp:
Oct 19, 2008 9:50:12 PM (12 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
20effe3
Parents:
a7e876d
Message:
  • FloodOnlySearchJob?: Recover better if the floodfills you know are no longer floodfill or are gone
File:
1 edited

Legend:

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

    ra7e876d r8a756a6  
    134134                     ffp.add(0, peer);
    135135            }
     136            // This will help us recover if the router just started and all the floodfills
     137            // have changed since the last time we were running
     138            if (floodfillPeers.size() - failcount <= 2)
     139                _shouldProcessDSRM = true;
    136140            if (_log.shouldLog(Log.INFO) && failcount > 0)
    137141                _log.info(getJobId() + ": " + failcount + " of " + floodfillPeers.size() + " floodfills are not heard from, unprofiled, failing, unreachable or shitlisted");
    138142            floodfillPeers = ffp;
     143        } else {
     144            _shouldProcessDSRM = true;
    139145        }
    140146
Note: See TracChangeset for help on using the changeset viewer.