Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Bugfix/Data inconsistency caused by updateEventHandler #3843

Merged
merged 2 commits into from
Nov 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ public void updateEventHandler(EventHandler eventHandler) {
throw new NotFoundException(
"EventHandler with name %s not found!", eventHandler.getName());
}
if (!existing.getEvent().equals(eventHandler.getEvent())) {
removeIndex(existing);
}
index(eventHandler);
jedisProxy.hset(nsKey(EVENT_HANDLERS), eventHandler.getName(), toJson(eventHandler));
recordRedisDaoRequests("updateEventHandler");
Expand Down
Loading