Minor updates for Ruby 3.x.
FossilOrigin-Name: 792a95e73dbfb858dbbd56b1140c2ddf6bc3afb558e65cc665f30fd6db6833e1
This commit is contained in:
parent
3cc4fe1e02
commit
442d19ecb5
4 changed files with 4 additions and 7 deletions
|
|
@ -1 +1 @@
|
||||||
2.7
|
3.1
|
||||||
|
|
|
||||||
|
|
@ -860,7 +860,7 @@ static VALUE rmdbx_init_copy( VALUE copy, VALUE orig )
|
||||||
void
|
void
|
||||||
rmdbx_init_database()
|
rmdbx_init_database()
|
||||||
{
|
{
|
||||||
rmdbx_cDatabase = rb_define_class_under( rmdbx_mMDBX, "Database", rb_cData );
|
rmdbx_cDatabase = rb_define_class_under( rmdbx_mMDBX, "Database", rb_cObject );
|
||||||
|
|
||||||
#ifdef FOR_RDOC
|
#ifdef FOR_RDOC
|
||||||
rmdbx_mMDBX = rb_define_module( "MDBX" );
|
rmdbx_mMDBX = rb_define_module( "MDBX" );
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@ class MDBX::Database
|
||||||
###
|
###
|
||||||
### [:no_threadlocal]
|
### [:no_threadlocal]
|
||||||
### Parallelize read-only transactions across threads. Writes are
|
### Parallelize read-only transactions across threads. Writes are
|
||||||
### always thread local. (See MDBX documentatoin for details.)
|
### always thread local. (See MDBX documentation for details.)
|
||||||
###
|
###
|
||||||
### [:readonly]
|
### [:readonly]
|
||||||
### Reject any write attempts while using this database handle.
|
### Reject any write attempts while using this database handle.
|
||||||
|
|
@ -364,7 +364,6 @@ class MDBX::Database
|
||||||
protected
|
protected
|
||||||
#########
|
#########
|
||||||
|
|
||||||
|
|
||||||
### Safely serialize a value, closing any open transaction and re-raising
|
### Safely serialize a value, closing any open transaction and re-raising
|
||||||
### if necessary.
|
### if necessary.
|
||||||
###
|
###
|
||||||
|
|
@ -391,7 +390,6 @@ class MDBX::Database
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Yield and return the block, opening a snapshot first if
|
### Yield and return the block, opening a snapshot first if
|
||||||
### there isn't already a transaction in progress. Closes
|
### there isn't already a transaction in progress. Closes
|
||||||
### the snapshot if this method opened it.
|
### the snapshot if this method opened it.
|
||||||
|
|
|
||||||
|
|
@ -71,8 +71,7 @@ RSpec.describe( MDBX::Database ) do
|
||||||
# here for behavior.
|
# here for behavior.
|
||||||
expect {
|
expect {
|
||||||
described_class.open( TEST_DATABASE.to_s )
|
described_class.open( TEST_DATABASE.to_s )
|
||||||
}.
|
}.to raise_exception( MDBX::DatabaseError, /resource \w+ unavailable/i )
|
||||||
to raise_exception( MDBX::DatabaseError, /environment is already used/ )
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue