Skip to content
Permalink
Browse files

0003875: The 'audit' router should not write rows to the audit table …

…during a load (3.9)
  • Loading branch information...
mmichalek committed Feb 14, 2019
1 parent e56ce71 commit 844e257e2ecf345b32ca129d9cb4d7b744e5f6b8
@@ -61,6 +61,11 @@ public AuditTableDataRouter(ISymmetricEngine engine) {

public Set<String> routeToNodes(SimpleRouterContext context, DataMetaData dataMetaData,
Set<Node> nodes, boolean initialLoad, boolean initialLoadSelectUsed, TriggerRouter triggerRouter) {

if (initialLoad) { // loads are not audited; this is for CDC.
return null;
}

DataEventType eventType = dataMetaData.getData().getDataEventType();
if (eventType == DataEventType.INSERT || eventType == DataEventType.UPDATE
|| eventType == DataEventType.DELETE) {

0 comments on commit 844e257

Please sign in to comment.
You can’t perform that action at this time.