}
log.debug("updating current head to " + head);
ctx.pipeline().remove(RecordIdDecoder.class);
ctx.pipeline().remove(this);
ctx.pipeline().addLast(new SegmentDecoder(store));
preloaderExecutor = new DefaultEventExecutorGroup(4);
SegmentPreLoaderHandler h1 = new SegmentPreLoaderHandler();
ctx.pipeline().addLast(preloaderExecutor, h1);