Merge pull request #415 from wu-sheng/feature/aggbug

Fixed the bug that application calls sum incorrect.
This commit is contained in:
吴晟 Wu Sheng 2017-09-14 06:46:21 +08:00 committed by GitHub
commit 1535fc5b65
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ public abstract class AggregationWorker extends AbstractLocalAsyncWorker {
Data data = (Data)message;
dataCache.writing();
if (dataCache.containsKey(data.id())) {
getRole().dataDefine().mergeData(data, dataCache.get(data.id()));
getRole().dataDefine().mergeData(dataCache.get(data.id()), data);
} else {
dataCache.put(data.id(), data);
}