diff options
author | Matthias H <apoc@sixserv.org> | 2015-01-11 08:26:20 +0100 |
---|---|---|
committer | Matthias H <apoc@sixserv.org> | 2015-01-11 08:26:20 +0100 |
commit | 9785300d2b82d256ee9ac0eab50a4ddd7e387459 (patch) | |
tree | ad74664aba341b5d55298b61c894456910ad13a3 /bin | |
parent | be213d7bbcaf0bd91b4c4e78f1d6a1ae3032978b (diff) |
rbotdb: use correct bdb adapter for legacy backup
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/rbotdb | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -128,7 +128,11 @@ class BackupRegistry def read_bdb(file) data = {} - db = BDB::Hash.open(file.abs, nil, 'r') + begin + db = BDB::Hash.open(file.abs, nil, 'r') + rescue BDB::Fatal + db = BDB::Btree.open(file.abs, nil, 'r') + end db.each do |key, value| data[key] = value end |