lmdb: document migration resize safety

This commit is contained in:
ardocrat
2026-05-17 13:14:36 +03:00
parent cbf2cafd69
commit b97fa28aa4
+1
View File
@@ -277,6 +277,7 @@ impl Store {
};
let (resize, new_size) = needs_resize(&from_env, self.alloc_chunk_size);
if resize {
// We are sure there are no active txs, cause migration is called on database creation.
unsafe {
from_env.resize(new_size)?;
self.env.resize(new_size)?;