diff --git a/README.md b/README.md index b6805bd..86bb354 100644 --- a/README.md +++ b/README.md @@ -423,7 +423,7 @@ development. ## Reporting Issues Tests are performed against the latest stable MRI Ruby, and I endeavor to test -against the latest stable libmdbx (as of this writing, the 0.12.x versioning), +against the latest stable libmdbx (as of this writing, the 0.13.x versioning), on both x86 and ARM chipsets. Things may work for you in other environments - I'm just not matrix testing @@ -440,7 +440,7 @@ report any issues [here](https://code.martini.nu/fossil/ruby-mdbx/tktnew). ## License -Copyright (c) 2020-2024 Mahlon E. Smith +Copyright (c) 2020-2025 Mahlon E. Smith All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/ext/mdbx_ext/database.c b/ext/mdbx_ext/database.c index 7ead024..93d3ad3 100644 --- a/ext/mdbx_ext/database.c +++ b/ext/mdbx_ext/database.c @@ -805,8 +805,8 @@ rmdbx_database_initialize( int argc, VALUE *argv, VALUE self ) if ( RTEST(opt) ) db->settings.env_flags = db->settings.env_flags | MDBX_NOSUBDIR; opt = rb_hash_delete( opts, ID2SYM( rb_intern("no_readahead") ) ); if ( RTEST(opt) ) db->settings.env_flags = db->settings.env_flags | MDBX_NORDAHEAD; - opt = rb_hash_delete( opts, ID2SYM( rb_intern("no_threadlocal") ) ); - if ( RTEST(opt) ) db->settings.env_flags = db->settings.env_flags | MDBX_NOTLS; + opt = rb_hash_delete( opts, ID2SYM( rb_intern("no_stickythreads") ) ); + if ( RTEST(opt) ) db->settings.env_flags = db->settings.env_flags | MDBX_NOSTICKYTHREADS; opt = rb_hash_delete( opts, ID2SYM( rb_intern("readonly") ) ); if ( RTEST(opt) ) db->settings.env_flags = db->settings.env_flags | MDBX_RDONLY; opt = rb_hash_delete( opts, ID2SYM( rb_intern("writemap") ) ); diff --git a/lib/mdbx/database.rb b/lib/mdbx/database.rb index 71541e0..535bcc5 100644 --- a/lib/mdbx/database.rb +++ b/lib/mdbx/database.rb @@ -32,11 +32,6 @@ class MDBX::Database ### Unless otherwise mentioned, option keys are symbols, and values ### are boolean. ### - ### [:coalesce] - ### Attempt to coalesce items for the garbage collector, - ### potentialy increasing the chance of unallocating storage - ### earlier. - ### ### [:compatible] ### Skip compatibility checks when opening an in-use database with ### unknown or mismatched flag values. @@ -83,7 +78,7 @@ class MDBX::Database ### random reads wunder low memory conditions. Default behavior ### is to dynamically choose when to use or omit readahead. ### - ### [:no_threadlocal] + ### [:no_stickythreads] ### Parallelize read-only transactions across threads. Writes are ### always thread local. (See MDBX documentation for details.) ###