Skip to content
Permalink
Browse files

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

…during a load (3.10)
  • Loading branch information...
mmichalek committed Feb 14, 2019
1 parent fcc0323 commit 764ad8be41ff648012e522f610f921c88cf52768
@@ -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 764ad8b

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