From ae15a1d7464c017bb311afeeb0329cfc76eaa18b Mon Sep 17 00:00:00 2001 From: Ahmed Ibrahim Date: Thu, 25 Jul 2024 13:02:36 +0200 Subject: [PATCH] first commit --- .../org/gcube/portal/databook/server/MigrationStarter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/java/org/gcube/portal/databook/server/MigrationStarter.java b/main/java/org/gcube/portal/databook/server/MigrationStarter.java index 1180c5a..16b86c9 100644 --- a/main/java/org/gcube/portal/databook/server/MigrationStarter.java +++ b/main/java/org/gcube/portal/databook/server/MigrationStarter.java @@ -848,7 +848,7 @@ closeSession(session_dest); for (Row row: rows){ boolean flag = false; while (!flag) { - session_dest.execute(getWriteStatementNotification(session_dest, row)).wasApplied(); + flag = session_dest.execute(getWriteStatementNotification(session_dest, row)).wasApplied(); } } }catch (Exception e){ @@ -917,7 +917,7 @@ closeSession(session_dest); for (Row row: rows){ boolean flag = false; while (!flag) { - session_dest.execute(getWriteStatementPost(session_dest, row)).wasApplied(); + flag = session_dest.execute(getWriteStatementPost(session_dest, row)).wasApplied(); } } }catch (Exception e){