Locks and exception-resilience.
This commit is contained in:
parent
4fe2719f31
commit
d0813205e6
@ -61,6 +61,10 @@ abstract class DODB::Storage(V)
|
|||||||
release_lock "index"
|
release_lock "index"
|
||||||
|
|
||||||
index # FIXME: Should we really return the internal key?
|
index # FIXME: Should we really return the internal key?
|
||||||
|
rescue e
|
||||||
|
release_lock "index"
|
||||||
|
|
||||||
|
raise e
|
||||||
end
|
end
|
||||||
|
|
||||||
def each(reversed : Bool = false, start_offset = 0, end_offset : Int32? = nil)
|
def each(reversed : Bool = false, start_offset = 0, end_offset : Int32? = nil)
|
||||||
|
Loading…
Reference in New Issue
Block a user