Change default age of purge_images_table to 180
The `glance manage purge-images-table` is supposed to be used only if really required due to OSSN-0075. And the advice is not to purge any freshly deleted rows due to the possible ID collision of still in use images. This change increases the default of "age_in_days" to 180 from it's original 30 to stress this out. User can still define smaller age if they must. Change-Id: Idb13288b72b31940a357fc9b11db2d6bcd396261
This commit is contained in:
parent
0a82f98084
commit
864d1ad714
|
@ -371,7 +371,7 @@ class DbCommands(object):
|
|||
help='Purge deleted rows older than age in days')
|
||||
@args('--max_rows', type=int,
|
||||
help='Limit number of records to delete')
|
||||
def purge_images_table(self, age_in_days=30, max_rows=100):
|
||||
def purge_images_table(self, age_in_days=180, max_rows=100):
|
||||
"""Purge deleted rows older than a given age from images table."""
|
||||
self._purge(age_in_days, max_rows, purge_images_only=True)
|
||||
|
||||
|
|
Loading…
Reference in New Issue