forked from M-Labs/artiq
RELEASE_NOTES: update lmdb migrate script
This commit is contained in:
parent
373fe3dbe7
commit
7ca02a119d
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue