From 471da34f67df416f0dc2454d8f8e0860797b120d Mon Sep 17 00:00:00 2001 From: danielle-tfh Date: Tue, 14 Jan 2025 15:47:44 +0100 Subject: [PATCH] [temp] stage increase DB size in staging --- .github/workflows/temp-branch-build-and-push.yaml | 2 +- iris-mpc/src/bin/server.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/temp-branch-build-and-push.yaml b/.github/workflows/temp-branch-build-and-push.yaml index 00cee77d4..2ce5516a8 100644 --- a/.github/workflows/temp-branch-build-and-push.yaml +++ b/.github/workflows/temp-branch-build-and-push.yaml @@ -3,7 +3,7 @@ name: Branch - Build and push docker image on: push: branches: - - "feat/even-odd-import-from-s3" + - "feat/staging-fill-db-size" concurrency: group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' diff --git a/iris-mpc/src/bin/server.rs b/iris-mpc/src/bin/server.rs index 2ba9c657c..760d67cb7 100644 --- a/iris-mpc/src/bin/server.rs +++ b/iris-mpc/src/bin/server.rs @@ -726,7 +726,7 @@ async fn server_main(config: Config) -> eyre::Result<()> { // Seed the persistent storage with random shares if configured and db is still // empty. - if store_len == 0 && config.init_db_size > 0 { + if config.init_db_size > 0 && store_len < config.init_db_size { tracing::info!( "Initialize persistent iris DB with {} randomly generated shares", config.init_db_size