Skip to content

Commit

Permalink
TMP: XXX
Browse files Browse the repository at this point in the history
  • Loading branch information
deiferni committed Jun 13, 2019
1 parent 49b960d commit e41fb34
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ftw/catalogdoctor/surgery.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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):
Expand Down

0 comments on commit e41fb34

Please sign in to comment.