From e41fb34ea44807787c5f004dc67a3545dd9dc70a Mon Sep 17 00:00:00 2001 From: David Erni Date: Thu, 13 Jun 2019 16:03:51 +0200 Subject: [PATCH] TMP: XXX --- ftw/catalogdoctor/surgery.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ftw/catalogdoctor/surgery.py b/ftw/catalogdoctor/surgery.py index 69fc011..1b0bd5e 100644 --- a/ftw/catalogdoctor/surgery.py +++ b/ftw/catalogdoctor/surgery.py @@ -269,6 +269,13 @@ def perform(self): self.change_catalog_length(-1) +class ReindexMissingUUID(Surgery): + """Reindex an uuid which is missing from the catalog.""" + + def perform(self): + import pudb; pudb.set_trace() # noqa + + class CatalogDoctor(object): """Performs surgery for an unhealthy_rid, if possible. @@ -291,6 +298,10 @@ class CatalogDoctor(object): 'in_uuid_unindex_not_in_catalog', 'in_uuid_unindex_not_in_uuid_index', ): RemoveOrphanedRid, + ( + 'in_catalog_not_in_uuid_index', + 'in_uuid_unindex_not_in_uuid_index', + ): ReindexMissingUUID, } def __init__(self, catalog, unhealthy_rid):