1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-13 20:15:22 +02:00

[287457] [dstore] problems with disconnect when readonly trace file

This commit is contained in:
David McKnight 2009-08-24 16:51:07 +00:00
parent 8e42638601
commit c37481f65d

View file

@ -30,6 +30,7 @@
* David McKnight (IBM) - [282599] [dstore] log folder that is not a hidden one * David McKnight (IBM) - [282599] [dstore] log folder that is not a hidden one
* David McKnight (IBM) - [285151] [dstore] Potential threading problem in DataStore (open call) * David McKnight (IBM) - [285151] [dstore] Potential threading problem in DataStore (open call)
* David McKnight (IBM) - [285301] [dstore] 100% CPU if user does not have write access to $HOME * David McKnight (IBM) - [285301] [dstore] 100% CPU if user does not have write access to $HOME
* David McKnight (IBM) - [287457] [dstore] problems with disconnect when readonly trace file
*******************************************************************************/ *******************************************************************************/
package org.eclipse.dstore.core.model; package org.eclipse.dstore.core.model;
@ -3956,7 +3957,7 @@ public final class DataStore
_hashMap.remove(id); _hashMap.remove(id);
} }
if (!isConnected()) if (!isConnected() && from != null)
{ {
from.removeNestedData(toDelete); from.removeNestedData(toDelete);
} }
@ -4138,16 +4139,19 @@ public final class DataStore
// which causes havoc for iSeries caching when switching between offline / online // which causes havoc for iSeries caching when switching between offline / online
//if (isVirtual()) //if (isVirtual())
// flush(); // flush();
if (_deRemover != null) if (_deRemover != null){
_deRemover.finish(); _deRemover.finish();
}
if (_tracingOn) if (_tracingOn)
{ {
try try
{ {
_traceFile.writeBytes("Finished Tracing"); //$NON-NLS-1$ if (_traceFile != null){
_traceFile.writeBytes(System.getProperty("line.separator")); //$NON-NLS-1$ _traceFile.writeBytes("Finished Tracing"); //$NON-NLS-1$
_traceFile.close(); _traceFile.writeBytes(System.getProperty("line.separator")); //$NON-NLS-1$
_traceFile.close();
}
} }
catch (IOException e) catch (IOException e)
{ {