@@ -138,7 +138,7 @@ public class ConfigControllerV3 {
138138 private final ConfigListenerStateDelegate configListenerStateDelegate ;
139139
140140 private final ConfigMigrateService configMigrateService ;
141-
141+
142142 /**
143143 * Flag to indicate if the table `config_info_beta` exists, which means the old version of table schema is used.
144144 */
@@ -244,13 +244,18 @@ public Result<Boolean> publishConfig(HttpServletRequest request, ConfigFormV3 co
244244 public Result <Boolean > publishConfigMetadata (HttpServletRequest request , ConfigFormV3 configForm )
245245 throws NacosException {
246246 configForm .validate ();
247+ String remoteIp = getRemoteIp (request );
247248 String configTags = configForm .getConfigTags ();
248249 String description = configForm .getDesc ();
249250 String dataId = configForm .getDataId ();
250251 String group = configForm .getGroup ();
251252 String namespaceId = NamespaceUtil .processNamespaceParameter (configForm .getNamespaceId ());
252253 configInfoPersistService .updateConfigInfoMetadata (dataId , group , namespaceId , configTags , description );
253254 configMigrateService .updateConfigMetadataMigrate (dataId , group , namespaceId , configTags , description );
255+ final Timestamp time = TimeUtils .getCurrentTime ();
256+ ConfigTraceService .logPersistenceEvent (dataId , group , namespaceId , null , time .getTime (), remoteIp ,
257+ ConfigTraceService .PERSISTENCE_EVENT_METADATA , ConfigTraceService .PERSISTENCE_TYPE_PUB , null );
258+ ConfigChangePublisher .notifyConfigChange (new ConfigDataChangeEvent (dataId , group , namespaceId , time .getTime ()));
254259 return Result .success (true );
255260 }
256261
0 commit comments