Skip to content

Conversation

@rmunn
Copy link
Contributor

@rmunn rmunn commented Apr 21, 2023

PR #272 changed Platform.IsMono to IsUnix in the CreateOrOpen method of SharedXMLBackendProvider, but the Platform.IsMono check in the constructor was missed. This fixes that omission, and will also fix sillsdev/LfMerge#323 (which was caused by the mismatch: when liblcm is running under .Net Core on Linux, as in LfMerge, the CreateOrOpen method ends up trying to use the m_commitLogDir property that the constructor never set).


This change is Reviewable

PR #272 changed Platform.IsMono to IsUnix in the CreateOrOpen method,
but the Platform.IsMono check in the constructor was missed. This fixes
that omission.
@papeh papeh merged commit d22dc47 into develop Apr 21, 2023
@papeh papeh deleted the bugfix/null-commitLogDir branch April 21, 2023 14:54
@megahirt
Copy link
Contributor

I asked @jasonleenaylor about this a while back and he insightfully pointed out that there is no point in LFMerge even invoking SharedXMLBackendProvider since it doesn't make sense in the server context, and that there was a way to tell liblcm to "turn if off" in a setting somewhere, but I don't know how to do that. So LFMerge is exercising this code when it's not actually useful to our purposes on the server. That's my understanding.

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.

4 participants