|
@@ -10,6 +10,7 @@ import org.apache.logging.log4j.ThreadContext;
|
|
import com.google.common.collect.Lists;
|
|
import com.google.common.collect.Lists;
|
|
|
|
|
|
import cn.com.qmth.examcloud.commons.helpers.KeyValuePair;
|
|
import cn.com.qmth.examcloud.commons.helpers.KeyValuePair;
|
|
|
|
+import cn.com.qmth.examcloud.commons.helpers.ObjectHolder;
|
|
import cn.com.qmth.examcloud.commons.logging.ExamCloudLog;
|
|
import cn.com.qmth.examcloud.commons.logging.ExamCloudLog;
|
|
import cn.com.qmth.examcloud.commons.logging.ExamCloudLogFactory;
|
|
import cn.com.qmth.examcloud.commons.logging.ExamCloudLogFactory;
|
|
import cn.com.qmth.examcloud.commons.util.ThreadLocalUtil;
|
|
import cn.com.qmth.examcloud.commons.util.ThreadLocalUtil;
|
|
@@ -126,7 +127,7 @@ public class SimpleNode<KEYIN, VALUEIN, KEYOUT, VALUEOUT>
|
|
}
|
|
}
|
|
counter.incrementTotal();
|
|
counter.incrementTotal();
|
|
List<KeyValuePair<KEYOUT, VALUEOUT>> outList = Lists.newLinkedList();
|
|
List<KeyValuePair<KEYOUT, VALUEOUT>> outList = Lists.newLinkedList();
|
|
- Boolean removable = true;
|
|
|
|
|
|
+ ObjectHolder<Boolean> removable = new ObjectHolder<Boolean>(true);
|
|
executer.execute(key, value, outList, removable, context);
|
|
executer.execute(key, value, outList, removable, context);
|
|
|
|
|
|
if (null != outList && null != getLowerStorer()) {
|
|
if (null != outList && null != getLowerStorer()) {
|
|
@@ -135,7 +136,7 @@ public class SimpleNode<KEYIN, VALUEIN, KEYOUT, VALUEOUT>
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- if (removable) {
|
|
|
|
|
|
+ if (removable.get()) {
|
|
if (null != key) {
|
|
if (null != key) {
|
|
getStorer().remove(key);
|
|
getStorer().remove(key);
|
|
}
|
|
}
|