Skip to content

Commit 34af0b8

Browse files
committed
wip
1 parent 5f2c684 commit 34af0b8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryClassDescriptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ private boolean preWrite(BinaryWriterExImpl writer, Object obj) {
10631063
* @param writer Writer.
10641064
*/
10651065
private void postWrite(BinaryWriterExImpl writer) {
1066-
writer.postWrite(userType, registered);
1066+
writer.postWrite(null, userType, registered);
10671067
}
10681068

10691069
/**

modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryWriterExImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,12 +273,12 @@ public void preWrite(@Nullable String clsName) {
273273
* @param userType User type flag.
274274
* @param registered Whether type is registered.
275275
*/
276-
public void postWrite(boolean userType, boolean registered) {
276+
public void postWrite(Boolean existingCompactFooter, boolean userType, boolean registered) {
277277
short flags;
278278
boolean useCompactFooter;
279279

280280
if (userType) {
281-
if (ctx.isCompactFooter()) {
281+
if (existingCompactFooter != null ? existingCompactFooter : ctx.isCompactFooter()) {
282282
flags = BinaryUtils.FLAG_USR_TYP | BinaryUtils.FLAG_COMPACT_FOOTER;
283283
useCompactFooter = true;
284284
}

modules/core/src/main/java/org/apache/ignite/internal/binary/builder/BinaryObjectBuilderImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ else if (readCache == null) {
341341
reader.position(start + BinaryUtils.length(reader, start));
342342
}
343343

344-
writer.postWrite(true, registeredType);
344+
writer.postWrite(BinaryUtils.isCompactFooter(flags), true, registeredType);
345345

346346
// Update metadata if needed.
347347
int schemaId = writer.schemaId();

0 commit comments

Comments
 (0)