ORNL / DataFed

A Federated Scientific Data Management System
https://ornl.github.io/DataFed/
Other
18 stars 14 forks source link

Schema ref count out of sync #696

Closed dvstans closed 3 years ago

dvstans commented 3 years ago

The schema use count got out of sync (shows more refs than are really there). The root cause is unknown, but likely has to do with record deletion. It would be better to not have a count at all and rely on actual DB references.

dvstans commented 3 years ago

Record deletion does not de-reference associated schema.

dvstans commented 3 years ago

Fixed by de-referencing in DB delete record/project methods.