From d596cee3866b2d9f1a3978389916a56bda9119d9 Mon Sep 17 00:00:00 2001 From: Tigran Mkrtchyan Date: Mon, 24 Oct 2022 12:56:41 +0200 Subject: [PATCH] Revert "xroot: fix write message ref count" This reverts commit 51cbf8e6db480f2ca86e7af6061489f2140823f0. --- .../java/org/dcache/nearline/cta/xrootd/DataServerHandler.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/org/dcache/nearline/cta/xrootd/DataServerHandler.java b/src/main/java/org/dcache/nearline/cta/xrootd/DataServerHandler.java index 786343e..b859289 100644 --- a/src/main/java/org/dcache/nearline/cta/xrootd/DataServerHandler.java +++ b/src/main/java/org/dcache/nearline/cta/xrootd/DataServerHandler.java @@ -298,8 +298,6 @@ protected OkResponse doOnWrite(ChannelHandlerContext ctx, WriteReq FileChannel fileChannel = getOpenFile(msg.getFileHandle()).fileChannel(); fileChannel.position(msg.getWriteOffset()); msg.getData(fileChannel); - // REVISIT!!! this should happen automatically! - msg.retain(); return withOk(msg); } catch (IOException e) { throw new XrootdException(kXR_IOError, e.getMessage());