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,8 +318,10 @@ public class EntityGraphMapper { ...@@ -318,8 +318,10 @@ public class EntityGraphMapper {
RequestContext req = RequestContext.get(); RequestContext req = RequestContext.get();
for (AtlasEntityHeader entity : req.getDeletedEntities()) { if(!req.isPurgeRequested()) {
resp.addEntity(DELETE, entity); for (AtlasEntityHeader entity : req.getDeletedEntities()) {
resp.addEntity(DELETE, entity);
}
} }
for (AtlasEntityHeader entity : req.getUpdatedEntities()) { for (AtlasEntityHeader entity : req.getUpdatedEntities()) {
......
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