From dd5358ec163fb0729d11720a7a3087fd7d5255a3 Mon Sep 17 00:00:00 2001 From: Tglman Date: Fri, 4 Aug 2023 17:48:09 +0100 Subject: [PATCH] fix: make sure to re-start transaction after commit on index rebuild --- .../com/orientechnologies/orient/core/index/OIndexAbstract.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/com/orientechnologies/orient/core/index/OIndexAbstract.java b/core/src/main/java/com/orientechnologies/orient/core/index/OIndexAbstract.java index dfb94d65b2e..4fe889dcf73 100755 --- a/core/src/main/java/com/orientechnologies/orient/core/index/OIndexAbstract.java +++ b/core/src/main/java/com/orientechnologies/orient/core/index/OIndexAbstract.java @@ -1027,6 +1027,7 @@ private long[] indexCluster( } if (documentIndexed % 1000 == 0) { database.commit(); + database.begin(); } documentNum++;