From a7be65e0840cca7ded696586f1d5c907c834da09 Mon Sep 17 00:00:00 2001 From: Xuan Chen Date: Thu, 20 Dec 2007 05:55:06 +0000 Subject: [PATCH] [209827] fix: Update DStore command implementation to enable cancelation of archive operations --- .../rse/dstore/universal/miners/UniversalFileSystemMiner.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/dstore/universal/miners/UniversalFileSystemMiner.java b/rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/dstore/universal/miners/UniversalFileSystemMiner.java index b9a6c6c3ec5..ba45652d559 100644 --- a/rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/dstore/universal/miners/UniversalFileSystemMiner.java +++ b/rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/dstore/universal/miners/UniversalFileSystemMiner.java @@ -296,11 +296,10 @@ public class UniversalFileSystemMiner extends Miner { public DataElement handleCancel(DataElement subject, DataElement status) { ICancellableHandler thread = (ICancellableHandler) _cancellableThreads .get(subject); - System.out.println("Inside handleCancel(), and the thread is " + thread); + if (thread != null) { if (!thread.isDone()) { - System.out.println("Inside handleCancel(), and will call thread.cancel"); thread.cancel(); } } @@ -414,7 +413,6 @@ public class UniversalFileSystemMiner extends Miner { _dataStore.trace(e); } // save find thread in hashmap for retrieval during cancel - System.out.println("put thread into the _cancellableThreads hashmap. " + thread.getClass()); _cancellableThreads.put(command, thread); }