Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allows Catalog to be constructed over a directory where old recordings have been deleted #502

Merged

Conversation

ZachBray
Copy link
Contributor

Background

Previously, we were able to start a consensus module over a directory where old recordings had been deleted; however, upon upgrading to v1.9.0 this was no longer possible.

This change adds back the aforementioned behaviour.

Changes

Inside Catalog.refreshAndFixDescriptor(...) it determines the maximum "segment index" for a given recordingId by looking at the file segments inside the archive directory. Previously it looked at all segment files. Now it just looks at the segment files that are for the recordingId.

This shows a change in behaviour where previously the Catalog could be constructed over
directories where old recordings had been deleted.
@mjpt777 mjpt777 merged commit 48c7c2f into real-logic:master Apr 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants