Merge branch 'master' of github.com:redisson/redisson

pull/6478/head
mrniko 4 weeks ago
commit 0f44d9221b

@ -176,7 +176,7 @@ public class RedissonRegionFactory extends RegionFactoryTemplate {
+ "local nextValue = math.max(tonumber(ARGV[1]), tonumber(currentTime) + 1); " + "local nextValue = math.max(tonumber(ARGV[1]), tonumber(currentTime) + 1); "
+ "redis.call('set', KEYS[1], nextValue); " + "redis.call('set', KEYS[1], nextValue); "
+ "return nextValue;", + "return nextValue;",
RScript.ReturnType.INTEGER, Arrays.<Object>asList("redisson-hibernate-timestamp"), time); RScript.ReturnType.INTEGER, Arrays.<Object>asList(qualifyName("redisson-hibernate-timestamp")), time);
} catch (Exception e) { } catch (Exception e) {
if (fallback) { if (fallback) {
return super.nextTimestamp(); return super.nextTimestamp();

@ -177,7 +177,7 @@ public class RedissonRegionFactory extends RegionFactoryTemplate {
+ "local nextValue = math.max(tonumber(ARGV[1]), tonumber(currentTime) + 1); " + "local nextValue = math.max(tonumber(ARGV[1]), tonumber(currentTime) + 1); "
+ "redis.call('set', KEYS[1], nextValue); " + "redis.call('set', KEYS[1], nextValue); "
+ "return nextValue;", + "return nextValue;",
RScript.ReturnType.INTEGER, Arrays.<Object>asList("redisson-hibernate-timestamp"), time); RScript.ReturnType.INTEGER, Arrays.<Object>asList(qualifyName("redisson-hibernate-timestamp")), time);
} catch (Exception e) { } catch (Exception e) {
if (fallback) { if (fallback) {
return super.nextTimestamp(); return super.nextTimestamp();

Loading…
Cancel
Save