Fix import tool fails to restore registry entries

This commit is contained in:
Maurus Decimus
2026-05-04 17:25:40 +02:00
parent dc0f0c2879
commit 7e21ff6f4b
3 changed files with 21 additions and 3 deletions

View File

@@ -146,6 +146,24 @@ pub async fn test(test: &TestServer) {
}),
random_bytes(idx + 10),
);
batch.set(
ValueClass::Registry(RegistryClass::IndexId {
object_id: idx as u16,
item_id: idx as u64 * 100,
}),
vec![],
);
for index_id in 0u16..3 {
batch.set(
ValueClass::Registry(RegistryClass::Index {
object_id: idx as u16,
index_id,
key: random_bytes(idx + index_id as usize),
item_id: idx as u64 * 100,
}),
vec![],
);
}
}
db.write(batch.build_all()).await.unwrap();