boolean deactivate = false;
if(persistent) {
deactivate = !container.ext().isActive(checkBlocks[i]);
if(deactivate) container.activate(checkBlocks[i], 1);
}
<BUG>ClientCHK key = (ClientCHK) encodeBucket(checkBlocks[i], parent.ctx.compressorDescriptor).getClientKey();
if(deactivate) container.deactivate(checkBlocks[i], 1);</BUG>
onEncode(i+dataBlocks.length, key, container, context);
} catch (CHKEncodeException e) {
fail(new InsertException(InsertException.INTERNAL_ERROR, e, null), container, context);

boolean deactivate = false;
if(persistent) {
deactivate = !container.ext().isActive(dataBlocks[i]);
if(deactivate) container.activate(dataBlocks[i], 1);
}
ClientCHK key = (ClientCHK) encodeBucket(dataBlocks[i], compressorDescriptor).getClientKey();
if(deactivate) container.deactivate(dataBlocks[i], 1);
onEncode(i, key, container, context);
} catch (CHKEncodeException e) {
fail(new InsertException(InsertException.INTERNAL_ERROR, e, null), container, context);
