[Bug] Missing in memory property for old version of partition info (#2948)
This bug is introduced by PR #2846
This commit is contained in:
@ -1721,7 +1721,7 @@ opt_engine ::=
|
||||
|
||||
opt_key_value_map ::=
|
||||
{:
|
||||
RESULT = null;
|
||||
RESULT = Maps.newHashMap();
|
||||
:}
|
||||
| LPAREN key_value_map:map RPAREN
|
||||
{:
|
||||
|
||||
@ -151,6 +151,9 @@ public class PartitionInfo implements Writable {
|
||||
idToReplicationNum.put(partitionId, replicationNum);
|
||||
if (Catalog.getCurrentCatalogJournalVersion() >= FeMetaVersion.VERSION_72) {
|
||||
idToInMemory.put(partitionId, in.readBoolean());
|
||||
} else {
|
||||
// for compatibility, default is false
|
||||
idToInMemory.put(partitionId, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user