lmdb 0.4.6 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/lmdb_ext/lmdb_ext.c +4 -0
- data/lib/lmdb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bead2398fe212913ca5c86034ebaf619212b20f0
|
4
|
+
data.tar.gz: 46b8093e97073e46aa7e57054ee66e0138f48383
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a8bc109d1b095471a9711d85fe377e7cf981dc371b2090e40a48701c6eb457541ca1a494a240ba6d4178043ee547d302c34124a96d3d1a15a7b41a0bb410174
|
7
|
+
data.tar.gz: 2a6afea7ab6d1a6811aed004026b7f3b0e6fb95634ff84125e8420cf369eba12a3339aaca8acc2704f054cad90cd8fea5642e3237a27df3ea92c7e796860ca60
|
data/ext/lmdb_ext/lmdb_ext.c
CHANGED
@@ -625,6 +625,10 @@ static void environment_set_active_txn(VALUE self, VALUE thread, VALUE txn) {
|
|
625
625
|
rb_hash_delete(environment->txn_thread_hash, oldtxn);
|
626
626
|
}
|
627
627
|
} else {
|
628
|
+
VALUE oldtxn = rb_hash_aref(environment->thread_txn_hash, thread);
|
629
|
+
if (!NIL_P(oldtxn)) {
|
630
|
+
rb_hash_delete(environment->txn_thread_hash, oldtxn);
|
631
|
+
}
|
628
632
|
rb_hash_aset(environment->txn_thread_hash, txn, thread);
|
629
633
|
rb_hash_aset(environment->thread_txn_hash, thread, txn);
|
630
634
|
}
|
data/lib/lmdb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lmdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Mendler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|