refactoring

pull/5919/head
Nikita Koksharov 9 months ago
parent fd94acbf70
commit aff2a89439

@ -309,11 +309,10 @@ public class RedissonLocalCachedMap<K, V> extends RedissonMap<K, V> implements R
return new CompletableFutureWrapper<>(result); return new CompletableFutureWrapper<>(result);
} }
protected static byte[] generateLogEntryId(byte[] keyHash) { protected byte[] generateLogEntryId(byte[] keyHash) {
byte[] result = new byte[keyHash.length + 1 + 8]; byte[] result = new byte[keyHash.length + 1 + 8];
result[16] = ':'; result[16] = ':';
byte[] id = new byte[8]; byte[] id = getServiceManager().generateIdArray(8);
ThreadLocalRandom.current().nextBytes(id);
System.arraycopy(keyHash, 0, result, 0, keyHash.length); System.arraycopy(keyHash, 0, result, 0, keyHash.length);
System.arraycopy(id, 0, result, 17, id.length); System.arraycopy(id, 0, result, 17, id.length);

Loading…
Cancel
Save