Skip to content

Commit

Permalink
Inherit the correct isolation level with #snapshot
Browse files Browse the repository at this point in the history
Fix a typo in `RDF::Repository#isolation_level` to inherit the correct
level when snapshot is implemented. This affects Repositories
implementing snapshots, but not overriding the default
`#isolation_level`.
  • Loading branch information
Tom Johnson committed Sep 2, 2016
1 parent 0483f14 commit fba21d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rdf/repository.rb
Expand Up @@ -212,7 +212,7 @@ def project_graph(graph_name, &block)
##
# @see RDF::Dataset#isolation_level
def isolation_level
supports?(:snapshot) ? :repeatable_read : super
supports?(:snapshots) ? :repeatable_read : super
end

##
Expand Down

0 comments on commit fba21d0

Please sign in to comment.