Skip to content

Commit

Permalink
0003874: The 'audit' router should not write rows to the audit table …
Browse files Browse the repository at this point in the history
…during a load (3.8)
  • Loading branch information
mmichalek committed Feb 14, 2019
1 parent 72ebcaf commit 9d553b6
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -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) {
Expand Down

0 comments on commit 9d553b6

Please sign in to comment.