Skip to content

Commit

Permalink
IGNITE-22918 Remove GridDhtLockResponse#nearEvicted (#11475)
Browse files Browse the repository at this point in the history
  • Loading branch information
shishkovilja committed Sep 6, 2024
1 parent 3c3deb1 commit effb262
Showing 1 changed file with 1 addition and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import org.apache.ignite.internal.processors.cache.GridCacheEntryInfo;
import org.apache.ignite.internal.processors.cache.GridCacheSharedContext;
import org.apache.ignite.internal.processors.cache.distributed.GridDistributedLockResponse;
import org.apache.ignite.internal.processors.cache.transactions.IgniteTxKey;
import org.apache.ignite.internal.processors.cache.version.GridCacheVersion;
import org.apache.ignite.internal.util.tostring.GridToStringInclude;
import org.apache.ignite.internal.util.typedef.internal.S;
Expand All @@ -46,11 +45,6 @@ public class GridDhtLockResponse extends GridDistributedLockResponse {
/** */
private static final long serialVersionUID = 0L;

/** Evicted readers. */
@GridToStringInclude
@GridDirectCollection(IgniteTxKey.class)
private Collection<IgniteTxKey> nearEvicted;

/** Mini ID. */
private IgniteUuid miniId;

Expand Down Expand Up @@ -102,20 +96,6 @@ public GridDhtLockResponse(int cacheId, GridCacheVersion lockVer, IgniteUuid fut
this.miniId = miniId;
}

/**
* @return Evicted readers.
*/
public Collection<IgniteTxKey> nearEvicted() {
return nearEvicted;
}

/**
* @param nearEvicted Evicted readers.
*/
public void nearEvicted(Collection<IgniteTxKey> nearEvicted) {
this.nearEvicted = nearEvicted;
}

/**
* @return Mini future ID.
*/
Expand Down Expand Up @@ -167,11 +147,6 @@ public Collection<GridCacheEntryInfo> preloadEntries() {

GridCacheContext<?, ?> cctx = ctx.cacheContext(cacheId);

if (nearEvicted != null) {
for (IgniteTxKey key : nearEvicted)
key.prepareMarshal(cctx);
}

if (preloadEntries != null)
marshalInfos(preloadEntries, cctx.shared(), cctx.cacheObjectContext());
}
Expand All @@ -180,13 +155,6 @@ public Collection<GridCacheEntryInfo> preloadEntries() {
@Override public void finishUnmarshal(GridCacheSharedContext<?, ?> ctx, ClassLoader ldr) throws IgniteCheckedException {
super.finishUnmarshal(ctx, ldr);

GridCacheContext<?, ?> cctx = ctx.cacheContext(cacheId);

if (nearEvicted != null) {
for (IgniteTxKey key : nearEvicted)
key.finishUnmarshal(cctx, ldr);
}

if (preloadEntries != null)
unmarshalInfos(preloadEntries, ctx.cacheContext(cacheId), ldr);
}
Expand Down Expand Up @@ -219,12 +187,6 @@ public Collection<GridCacheEntryInfo> preloadEntries() {
writer.incrementState();

case 13:
if (!writer.writeCollection("nearEvicted", nearEvicted, MessageCollectionItemType.MSG))
return false;

writer.incrementState();

case 14:
if (!writer.writeCollection("preloadEntries", preloadEntries, MessageCollectionItemType.MSG))
return false;

Expand Down Expand Up @@ -263,14 +225,6 @@ public Collection<GridCacheEntryInfo> preloadEntries() {
reader.incrementState();

case 13:
nearEvicted = reader.readCollection("nearEvicted", MessageCollectionItemType.MSG);

if (!reader.isLastRead())
return false;

reader.incrementState();

case 14:
preloadEntries = reader.readCollection("preloadEntries", MessageCollectionItemType.MSG);

if (!reader.isLastRead())
Expand All @@ -290,7 +244,7 @@ public Collection<GridCacheEntryInfo> preloadEntries() {

/** {@inheritDoc} */
@Override public byte fieldsCount() {
return 15;
return 14;
}

/** {@inheritDoc} */
Expand Down

0 comments on commit effb262

Please sign in to comment.