Commit c135962b by sidmishra Committed by Sarath Subramanian

ATLAS-3707: Added check to avoid new audit to be created for delete in case of purge

parent fa2e5b49
...@@ -318,9 +318,11 @@ public class EntityGraphMapper { ...@@ -318,9 +318,11 @@ public class EntityGraphMapper {
RequestContext req = RequestContext.get(); RequestContext req = RequestContext.get();
if(!req.isPurgeRequested()) {
for (AtlasEntityHeader entity : req.getDeletedEntities()) { for (AtlasEntityHeader entity : req.getDeletedEntities()) {
resp.addEntity(DELETE, entity); resp.addEntity(DELETE, entity);
} }
}
for (AtlasEntityHeader entity : req.getUpdatedEntities()) { for (AtlasEntityHeader entity : req.getUpdatedEntities()) {
resp.addEntity(updateType, entity); resp.addEntity(updateType, entity);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment