Changeset 421559c


Ignore:
Timestamp:
Aug 16, 2011 6:29:57 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
b25a16f
Parents:
336e50e9
Message:
  • Console: Delete corrupt rrd file (ticket #483)
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/web/SummaryListener.java

    r336e50e9 r421559c  
    114114        _name = createName(_context, baseName);
    115115        _eventName = createName(_context, baseName + ".events");
     116        File rrdFile = null;
    116117        try {
    117118            RrdBackendFactory factory = RrdBackendFactory.getFactory(getBackendName());
     
    120121                // generate full path for persistent RRD files
    121122                File rrdDir = new SecureFile(_context.getRouterDir(), RRD_DIR);
    122                 File rrdFile = new File(rrdDir, RRD_PREFIX + _name + RRD_SUFFIX);
     123                rrdFile = new File(rrdDir, RRD_PREFIX + _name + RRD_SUFFIX);
    123124                rrdDefName = rrdFile.getAbsolutePath();
    124125                if (rrdFile.exists()) {
     
    165166        } catch (RrdException re) {
    166167            _log.error("Error starting RRD for stat " + baseName, re);
     168            // corrupt file?
     169            if (_isPersistent && rrdFile != null)
     170                rrdFile.delete();
    167171        } catch (IOException ioe) {
    168172            _log.error("Error starting RRD for stat " + baseName, ioe);
  • history.txt

    r336e50e9 r421559c  
    112011-08-16 zzz
     2  * Console: Tweak logs page CSS
     3  * Graphs: Delete corrupt rrd file (ticket #483)
    24  * UPnP: Fix bug causing failure when the PC has multiple interfaces
    35
Note: See TracChangeset for help on using the changeset viewer.