Skip to content

Commit

Permalink
Merge pull request Ericsson#2018 from csordasmarton/db-cleanup-on-run…
Browse files Browse the repository at this point in the history
…-remove

Cleanup database on run remove
  • Loading branch information
gyorb authored Mar 29, 2019
2 parents dc89532 + 4197695 commit ac0d78b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions web/server/codechecker_server/api/report_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1939,6 +1939,11 @@ def removeRun(self, run_id):
session.query(Run) \
.filter(Run.id == run_id) \
.delete(synchronize_session=False)

# Delete files and contents that are not present
# in any bug paths.
db_cleanup.remove_unused_files(session)

session.commit()
session.close()

Expand Down

0 comments on commit ac0d78b

Please sign in to comment.