mdbx 0.3.5 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/History.md +17 -1
- data/README.md +2 -2
- data/ext/mdbx_ext/database.c +2 -4
- data/ext/mdbx_ext/extconf.rb +1 -0
- data/ext/mdbx_ext/stats.c +8 -8
- data/lib/mdbx/database.rb +1 -6
- data/lib/mdbx.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6e52e1e3c29ff83b8b472a9c2c4be8388a03047e940926099b69f667195e747
|
4
|
+
data.tar.gz: b3b90a64cdc1d4f6efda2a99a62d4dbd6d6631e97ab752faaf82e52138d18063
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49448d4e973b42011c668e6524a7220085d244ade0f1a1710a107c1a579e8d90f90c89263e724961c28dff8c649787b992ca2f27d54992659ef148b4df937ecc
|
7
|
+
data.tar.gz: 52ce31f2c60f9a7ff38a3f486f4fb578d68d8173db3219e6303900d4d3fd4f1fbb627d88d05592676e05daac563bb547b827879e56c5b34a4f561a14063d7d27
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/History.md
CHANGED
@@ -1,7 +1,23 @@
|
|
1
1
|
# Release History for MDBX
|
2
2
|
|
3
3
|
---
|
4
|
-
## v0.3.
|
4
|
+
## v0.3.7 [2025-02-06] Mahlon E. Smith <mahlon@martini.nu>
|
5
|
+
|
6
|
+
Minutiae:
|
7
|
+
|
8
|
+
- Update for deprecations in 0.13.x libmdbx stable.
|
9
|
+
|
10
|
+
|
11
|
+
## v0.3.6 [2024-06-12] Mahlon E. Smith <mahlon@martini.nu>
|
12
|
+
|
13
|
+
|
14
|
+
Minutiae:
|
15
|
+
|
16
|
+
- Fix build for Clang/FreeBSD.
|
17
|
+
|
18
|
+
|
19
|
+
---
|
20
|
+
## v0.3.5 [2024-03-24] Mahlon E. Smith <mahlon@martini.nu>
|
5
21
|
|
6
22
|
Add support for libmdbx 0.12.x.
|
7
23
|
|
data/README.md
CHANGED
@@ -423,7 +423,7 @@ development.
|
|
423
423
|
## Reporting Issues
|
424
424
|
|
425
425
|
Tests are performed against the latest stable MRI Ruby, and I endeavor to test
|
426
|
-
against the latest stable libmdbx (as of this writing, the 0.
|
426
|
+
against the latest stable libmdbx (as of this writing, the 0.13.x versioning),
|
427
427
|
on both x86 and ARM chipsets.
|
428
428
|
|
429
429
|
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).
|
|
440
440
|
|
441
441
|
## License
|
442
442
|
|
443
|
-
Copyright (c) 2020-
|
443
|
+
Copyright (c) 2020-2025 Mahlon E. Smith
|
444
444
|
All rights reserved.
|
445
445
|
|
446
446
|
Redistribution and use in source and binary forms, with or without
|
data/ext/mdbx_ext/database.c
CHANGED
@@ -780,8 +780,6 @@ rmdbx_database_initialize( int argc, VALUE *argv, VALUE self )
|
|
780
780
|
|
781
781
|
/* Environment and database options setup, overrides.
|
782
782
|
*/
|
783
|
-
opt = rb_hash_delete( opts, ID2SYM( rb_intern("coalesce") ) );
|
784
|
-
if ( RTEST(opt) ) db->settings.env_flags = db->settings.env_flags | MDBX_COALESCE;
|
785
783
|
opt = rb_hash_delete( opts, ID2SYM( rb_intern("compatible") ) );
|
786
784
|
if ( RTEST(opt) ) {
|
787
785
|
db->settings.db_flags = db->settings.db_flags | MDBX_DB_ACCEDE;
|
@@ -807,8 +805,8 @@ rmdbx_database_initialize( int argc, VALUE *argv, VALUE self )
|
|
807
805
|
if ( RTEST(opt) ) db->settings.env_flags = db->settings.env_flags | MDBX_NOSUBDIR;
|
808
806
|
opt = rb_hash_delete( opts, ID2SYM( rb_intern("no_readahead") ) );
|
809
807
|
if ( RTEST(opt) ) db->settings.env_flags = db->settings.env_flags | MDBX_NORDAHEAD;
|
810
|
-
opt = rb_hash_delete( opts, ID2SYM( rb_intern("
|
811
|
-
if ( RTEST(opt) ) db->settings.env_flags = db->settings.env_flags |
|
808
|
+
opt = rb_hash_delete( opts, ID2SYM( rb_intern("no_stickythreads") ) );
|
809
|
+
if ( RTEST(opt) ) db->settings.env_flags = db->settings.env_flags | MDBX_NOSTICKYTHREADS;
|
812
810
|
opt = rb_hash_delete( opts, ID2SYM( rb_intern("readonly") ) );
|
813
811
|
if ( RTEST(opt) ) db->settings.env_flags = db->settings.env_flags | MDBX_RDONLY;
|
814
812
|
opt = rb_hash_delete( opts, ID2SYM( rb_intern("writemap") ) );
|
data/ext/mdbx_ext/extconf.rb
CHANGED
data/ext/mdbx_ext/stats.c
CHANGED
@@ -65,21 +65,21 @@ rmdbx_gather_datafile_stats(
|
|
65
65
|
rb_hash_aset( environ, ID2SYM(rb_intern("datafile")), datafile );
|
66
66
|
|
67
67
|
rb_hash_aset( datafile, ID2SYM(rb_intern("size_current")),
|
68
|
-
|
68
|
+
LONG2NUM(menvinfo.mi_geo.current) );
|
69
69
|
rb_hash_aset( datafile, ID2SYM(rb_intern("pages")),
|
70
|
-
|
70
|
+
LONG2NUM(menvinfo.mi_geo.current / mstat.ms_psize) );
|
71
71
|
|
72
72
|
if ( menvinfo.mi_geo.lower != menvinfo.mi_geo.upper ) {
|
73
73
|
rb_hash_aset( datafile, ID2SYM(rb_intern("type")),
|
74
74
|
rb_str_new_cstr("dynamic") );
|
75
75
|
rb_hash_aset( datafile, ID2SYM(rb_intern("size_lower")),
|
76
|
-
|
76
|
+
LONG2NUM( menvinfo.mi_geo.lower ) );
|
77
77
|
rb_hash_aset( datafile, ID2SYM(rb_intern("size_upper")),
|
78
78
|
LONG2FIX( menvinfo.mi_geo.upper ) );
|
79
79
|
rb_hash_aset( datafile, ID2SYM(rb_intern("growth_step")),
|
80
|
-
|
80
|
+
LONG2NUM( menvinfo.mi_geo.grow ) );
|
81
81
|
rb_hash_aset( datafile, ID2SYM(rb_intern("shrink_threshold")),
|
82
|
-
|
82
|
+
LONG2NUM( menvinfo.mi_geo.shrink ) );
|
83
83
|
}
|
84
84
|
else {
|
85
85
|
rb_hash_aset( datafile, ID2SYM(rb_intern("type")),
|
@@ -115,9 +115,9 @@ rmdbx_gather_environment_stats(
|
|
115
115
|
rb_hash_aset( environ, ID2SYM(rb_intern("entries")),
|
116
116
|
LONG2NUM(mstat.ms_entries) );
|
117
117
|
rb_hash_aset( environ, ID2SYM(rb_intern("last_txnid")),
|
118
|
-
|
118
|
+
LONG2NUM(menvinfo.mi_recent_txnid) );
|
119
119
|
rb_hash_aset( environ, ID2SYM(rb_intern("last_reader_txnid")),
|
120
|
-
|
120
|
+
LONG2NUM(menvinfo.mi_latter_reader_txnid) );
|
121
121
|
rb_hash_aset( environ, ID2SYM(rb_intern("max_readers")),
|
122
122
|
INT2NUM(menvinfo.mi_maxreaders) );
|
123
123
|
rb_hash_aset( environ, ID2SYM(rb_intern("readers_in_use")),
|
@@ -153,7 +153,7 @@ rmdbx_reader_list_cb(
|
|
153
153
|
rb_hash_aset( reader, ID2SYM(rb_intern("pid")),
|
154
154
|
LONG2FIX( pid ) );
|
155
155
|
rb_hash_aset( reader, ID2SYM(rb_intern("thread")),
|
156
|
-
LONG2FIX( thread ) );
|
156
|
+
LONG2FIX( (uint64_t)thread ) );
|
157
157
|
rb_hash_aset( reader, ID2SYM(rb_intern("txnid")),
|
158
158
|
LONG2FIX( txnid ) );
|
159
159
|
rb_hash_aset( reader, ID2SYM(rb_intern("lag")),
|
data/lib/mdbx/database.rb
CHANGED
@@ -32,11 +32,6 @@ class MDBX::Database
|
|
32
32
|
### Unless otherwise mentioned, option keys are symbols, and values
|
33
33
|
### are boolean.
|
34
34
|
###
|
35
|
-
### [:coalesce]
|
36
|
-
### Attempt to coalesce items for the garbage collector,
|
37
|
-
### potentialy increasing the chance of unallocating storage
|
38
|
-
### earlier.
|
39
|
-
###
|
40
35
|
### [:compatible]
|
41
36
|
### Skip compatibility checks when opening an in-use database with
|
42
37
|
### unknown or mismatched flag values.
|
@@ -83,7 +78,7 @@ class MDBX::Database
|
|
83
78
|
### random reads wunder low memory conditions. Default behavior
|
84
79
|
### is to dynamically choose when to use or omit readahead.
|
85
80
|
###
|
86
|
-
### [:
|
81
|
+
### [:no_stickythreads]
|
87
82
|
### Parallelize read-only transactions across threads. Writes are
|
88
83
|
### always thread local. (See MDBX documentation for details.)
|
89
84
|
###
|
data/lib/mdbx.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mdbx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mahlon E. Smith
|
@@ -34,7 +34,7 @@ cert_chain:
|
|
34
34
|
49pOzX5KHZLTS9DKeaP/xcGPz6C8MiwQdYrZarr2SHRASX1zFa79rkItO8kE6RDr
|
35
35
|
b6WDF79UvZ55ajtE00TiwqjQL/ZPEtbd
|
36
36
|
-----END CERTIFICATE-----
|
37
|
-
date:
|
37
|
+
date: 2025-02-06 00:00:00.000000000 Z
|
38
38
|
dependencies:
|
39
39
|
- !ruby/object:Gem::Dependency
|
40
40
|
name: loggability
|
@@ -222,7 +222,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
222
222
|
- !ruby/object:Gem::Version
|
223
223
|
version: '0'
|
224
224
|
requirements: []
|
225
|
-
rubygems_version: 3.
|
225
|
+
rubygems_version: 3.5.9
|
226
226
|
signing_key:
|
227
227
|
specification_version: 4
|
228
228
|
summary: A ruby binding to libmdbx, an improved version of the Lightning Memory Mapped
|
metadata.gz.sig
CHANGED
Binary file
|