diff options
author | Erik Olof Gunnar Andersson <eandersson@blizzard.com> | 2022-01-15 15:51:43 -0800 |
---|---|---|
committer | Erik Olof Gunnar Andersson <eandersson@blizzard.com> | 2022-02-14 20:36:03 +0000 |
commit | 5469116dd2555e7ae08034d47fdd2e1929705a9b (patch) | |
tree | bf8a8d4c204d067c084f9823bda3711e0d758dad | |
parent | c38810b15f968eb0e9e154e57240c702866363ee (diff) | |
download | designate-5469116dd2555e7ae08034d47fdd2e1929705a9b.tar.gz |
Remove legacy logic for deleting records
This logic is already handled by the sqlalchemy abstraction.
Change-Id: I6ee2db46fcec466d123f6c535670306942bb5dbd
-rw-r--r-- | designate/central/service.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/designate/central/service.py b/designate/central/service.py index a28d0961..bd259a4a 100644 --- a/designate/central/service.py +++ b/designate/central/service.py @@ -2386,21 +2386,6 @@ class Service(service.RPCService): record.action, record.status) self.storage.update_record(context, record) - # TODO(Ron): Including this to retain the current logic. - # We should NOT be deleting records. The record status should - # be used to indicate the record has been deleted. - if record.status == 'DELETED': - LOG.debug('Deleting record %s, serial %s: action %s, ' - 'status %s', record.id, record.serial, - record.action, record.status) - - self.storage.delete_record(context, record.id) - - recordset = self.storage.get_recordset( - context, record.recordset_id) - if len(recordset.records) == 0: - self.storage.delete_recordset(context, recordset.id) - return records @staticmethod |