lmdb 0.4.6 → 0.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cfbe0e0fc20cfe471e48ab16b7a6f03a868f5fa0
4
- data.tar.gz: cd1e90a95ee5eef3bf2bfe0f0db3e389feb22a51
3
+ metadata.gz: bead2398fe212913ca5c86034ebaf619212b20f0
4
+ data.tar.gz: 46b8093e97073e46aa7e57054ee66e0138f48383
5
5
  SHA512:
6
- metadata.gz: 23b7d820ead899db18c95d87e819b9d8a533a118a86bffe2bd996cd1352ca73bf8c3399150ed7b4fdaea7a5e4ab1901bc3844e14d25672874744572d383a1985
7
- data.tar.gz: e3d13fe0515fd9ca626ed81526b3be34a4b9f0affe73afef4862033bb8b124c1c84687115f8f5f40a3524a4308d44ac86e877113362a6b08e87f002f081052b5
6
+ metadata.gz: 9a8bc109d1b095471a9711d85fe377e7cf981dc371b2090e40a48701c6eb457541ca1a494a240ba6d4178043ee547d302c34124a96d3d1a15a7b41a0bb410174
7
+ data.tar.gz: 2a6afea7ab6d1a6811aed004026b7f3b0e6fb95634ff84125e8420cf369eba12a3339aaca8acc2704f054cad90cd8fea5642e3237a27df3ea92c7e796860ca60
@@ -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
  }
@@ -1,3 +1,3 @@
1
1
  module LMDB
2
- VERSION = '0.4.6'
2
+ VERSION = '0.4.7'
3
3
  end
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.6
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-15 00:00:00.000000000 Z
11
+ date: 2014-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake