RELEASE_NOTES: update lmdb migrate script

This commit is contained in:
Simon Renblad 2023-07-06 11:19:06 +08:00 committed by Sébastien Bourdeauducq
parent 373fe3dbe7
commit 7ca02a119d
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ Highlights:
new = lmdb.open("dataset_db.mdb", subdir=False, map_size=2**30) new = lmdb.open("dataset_db.mdb", subdir=False, map_size=2**30)
with new.begin(write=True) as txn: with new.begin(write=True) as txn:
for key, value in old.items(): for key, value in old.items():
txn.put(key.encode(), pyon.encode(value).encode()) txn.put(key.encode(), pyon.encode((value, {})).encode())
new.close() new.close()
Breaking changes: Breaking changes: