From 3f0b1d8e0b518c6f4684f65ae421f71864176d99 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 18 Jan 2023 15:48:08 +0300 Subject: fix(corp/data-import): commit the final transaction, too Otherwise up to 1000 elements might be missing. Change-Id: I20d6238424eec27f0e758e7737c9c31bcb81b23d Reviewed-on: https://cl.tvl.fyi/c/depot/+/7862 Tested-by: BuildkiteCI Reviewed-by: tazjin --- corp/russian/data-import/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'corp/russian/data-import') diff --git a/corp/russian/data-import/src/main.rs b/corp/russian/data-import/src/main.rs index 502351cf9de8..70eb0a56dd28 100644 --- a/corp/russian/data-import/src/main.rs +++ b/corp/russian/data-import/src/main.rs @@ -107,6 +107,8 @@ fn main() { count += 1; } + + tx.commit().ensure("final commit failed"); } /// It's like `expect`, but through `log::error`. -- cgit 1.4.1