mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-15 21:15:23 +02:00
[209827] fix: Update DStore command implementation to enable cancelation of archive operations
This commit is contained in:
parent
1c1fb2d1bd
commit
a7be65e084
1 changed files with 1 additions and 3 deletions
|
@ -296,11 +296,10 @@ public class UniversalFileSystemMiner extends Miner {
|
||||||
public DataElement handleCancel(DataElement subject, DataElement status) {
|
public DataElement handleCancel(DataElement subject, DataElement status) {
|
||||||
ICancellableHandler thread = (ICancellableHandler) _cancellableThreads
|
ICancellableHandler thread = (ICancellableHandler) _cancellableThreads
|
||||||
.get(subject);
|
.get(subject);
|
||||||
System.out.println("Inside handleCancel(), and the thread is " + thread);
|
|
||||||
|
|
||||||
if (thread != null) {
|
if (thread != null) {
|
||||||
if (!thread.isDone()) {
|
if (!thread.isDone()) {
|
||||||
System.out.println("Inside handleCancel(), and will call thread.cancel");
|
|
||||||
thread.cancel();
|
thread.cancel();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -414,7 +413,6 @@ public class UniversalFileSystemMiner extends Miner {
|
||||||
_dataStore.trace(e);
|
_dataStore.trace(e);
|
||||||
}
|
}
|
||||||
// save find thread in hashmap for retrieval during cancel
|
// save find thread in hashmap for retrieval during cancel
|
||||||
System.out.println("put thread into the _cancellableThreads hashmap. " + thread.getClass());
|
|
||||||
_cancellableThreads.put(command, thread);
|
_cancellableThreads.put(command, thread);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue