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

improve on read-only targets, see issue #202 #228

Closed
wants to merge 2 commits into from
Closed

improve on read-only targets, see issue #202 #228

wants to merge 2 commits into from

Conversation

ThomasWaldmann
Copy link
Contributor

it now fails in the same way for remote r/o targets as for local r/o targets (with a write lock exception).

with a remote target, the Repository instance seems to survive exceptions and thus the wrong self._txn_state lead to the strange behaviour that can be seen in the traceback of issue #202.

i am not completely sure whether this is the best solution, please review.

Without this, you just got "RCPError: AttributeError", now you get (e.g.):

RPCError: AttributeError(b"'Repository' object has no attribute 'segments'",)
@ThomasWaldmann ThomasWaldmann changed the title improve on ready-only targets, see issue #202 improve on read-only targets, see issue #202 May 14, 2015
@ThomasWaldmann
Copy link
Contributor Author

closing this pull request, seems unwanted.

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.

1 participant