Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -125,18 +125,19 @@ public class SnapshotMetadata implements Message, Serializable {
@Nullable transient Set<Integer> comprGrpIds;

/** */
private boolean hasComprGrps;
@Order(14)
boolean hasComprGrps;

/** If {@code true} snapshot only primary copies of partitions. */
@Order(14)
@Order(15)
boolean onlyPrimary;

/** If {@code true} cache group dump stored. */
@Order(15)
@Order(16)
boolean dump;

/** Encryption key. */
@Order(16)
@Order(17)
@Nullable byte[] encKey;

/** Empty constructor for a {@link MessageFactory}. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,8 @@ public class SnapshotRestoreOperationResponse implements MarshallableMessage {
byte[] ccfgsBytes;

/** Snapshot metadata files on local node. */
private List<SnapshotMetadata> metas;

/** */
@Order(1)
byte[] metasBytes;
List<SnapshotMetadata> metas;

/** Default constructor for {@link MessageFactory}. */
public SnapshotRestoreOperationResponse() {
Expand Down Expand Up @@ -74,15 +71,10 @@ public List<SnapshotMetadata> metadata() {
/** {@inheritDoc} */
@Override public void prepareMarshal(Marshaller marsh) throws IgniteCheckedException {
ccfgsBytes = U.marshal(marsh, ccfgs);
metasBytes = U.marshal(marsh, metas);
}

/** {@inheritDoc} */
@Override public void finishUnmarshal(Marshaller marsh, ClassLoader clsLdr) throws IgniteCheckedException {
if (ccfgsBytes != null)
ccfgs = U.unmarshal(marsh, ccfgsBytes, clsLdr);

if (metasBytes != null)
metas = U.unmarshal(marsh, metasBytes, clsLdr);
ccfgs = U.unmarshal(marsh, ccfgsBytes, clsLdr);
}
}
Loading