From 9d70f720ca006c9c08fcab32ef00d2c58c83b8e5 Mon Sep 17 00:00:00 2001 From: "water.lyl" Date: Tue, 30 Oct 2018 15:55:06 +0800 Subject: [PATCH] Fix #188 --- .../nacos/config/server/controller/ConfigController.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/config/src/main/java/com/alibaba/nacos/config/server/controller/ConfigController.java b/config/src/main/java/com/alibaba/nacos/config/server/controller/ConfigController.java index 62333bfeb..41ffc0dfa 100644 --- a/config/src/main/java/com/alibaba/nacos/config/server/controller/ConfigController.java +++ b/config/src/main/java/com/alibaba/nacos/config/server/controller/ConfigController.java @@ -201,9 +201,13 @@ public class ConfigController { ParamUtils.checkParam(tag); String clientIp = RequestUtil.getRemoteIp(request); if (StringUtils.isBlank(tag)) { - persistService.removeAggrConfigInfo(dataId, group, tenant); + persistService.removeConfigInfo(dataId, group, tenant, clientIp, null); + } else { + persistService.removeConfigInfoTag(dataId, group, tenant, tag, clientIp, null); } - mergeService.addMergeTask(dataId, group, tenant, tag, clientIp); + final Timestamp time = TimeUtils.getCurrentTime(); + ConfigTraceService.logPersistenceEvent(dataId, group, tenant, null, time.getTime(), clientIp, ConfigTraceService.PERSISTENCE_EVENT_REMOVE, null); + EventDispatcher.fireEvent(new ConfigDataChangeEvent(false, dataId, group, tenant, tag, time.getTime())); return true; }