|
|
@ -28,6 +28,7 @@ import java.util.concurrent.CountDownLatch;
|
|
|
|
import java.util.concurrent.TimeUnit;
|
|
|
|
import java.util.concurrent.TimeUnit;
|
|
|
|
import java.util.concurrent.atomic.AtomicInteger;
|
|
|
|
import java.util.concurrent.atomic.AtomicInteger;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import io.netty.util.ReferenceCountUtil;
|
|
|
|
import org.redisson.RedisClientResult;
|
|
|
|
import org.redisson.RedisClientResult;
|
|
|
|
import org.redisson.RedissonReference;
|
|
|
|
import org.redisson.RedissonReference;
|
|
|
|
import org.redisson.RedissonShutdownException;
|
|
|
|
import org.redisson.RedissonShutdownException;
|
|
|
@ -643,17 +644,13 @@ public class CommandAsyncService implements CommandAsyncExecutor {
|
|
|
|
|
|
|
|
|
|
|
|
protected void free(final Object[] params) {
|
|
|
|
protected void free(final Object[] params) {
|
|
|
|
for (Object obj : params) {
|
|
|
|
for (Object obj : params) {
|
|
|
|
if (obj instanceof ByteBuf) {
|
|
|
|
ReferenceCountUtil.safeRelease(obj);
|
|
|
|
((ByteBuf)obj).release();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected <V, R> void free(final AsyncDetails<V, R> details) {
|
|
|
|
protected <V, R> void free(final AsyncDetails<V, R> details) {
|
|
|
|
for (Object obj : details.getParams()) {
|
|
|
|
for (Object obj : details.getParams()) {
|
|
|
|
if (obj instanceof ByteBuf) {
|
|
|
|
ReferenceCountUtil.safeRelease(obj);
|
|
|
|
((ByteBuf)obj).release();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|