We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42967a1 commit d27f7d7Copy full SHA for d27f7d7
hibernate-reactive-core/src/main/java/org/hibernate/reactive/id/impl/BlockingIdentifierGenerator.java
@@ -54,6 +54,11 @@ protected synchronized long next(long hi) {
54
55
@Override
56
public CompletionStage<Long> generate(ReactiveConnectionSupplier session, Object entity) {
57
+ if ( getBlockSize()<=1 ) {
58
+ //special case where we're not using blocking at all
59
+ return nextHiValue(session);
60
+ }
61
+
62
long local = next();
63
if ( local >= 0 ) {
64
// We don't need to update or initialize the hi
0 commit comments