Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dataroaring committed Jun 21, 2024
1 parent 6facaed commit 06be42a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3576,8 +3576,7 @@ public long loadDb(DataInputStream dis, long checksum) throws IOException, DdlEx
int dbCount = dis.readInt();
long newChecksum = checksum ^ dbCount;
for (long i = 0; i < dbCount; ++i) {
Database db = new Database();
db.readFields(dis);
Database db = Database.read(dis);
newChecksum ^= db.getId();

Database dbPrev = fullNameToDb.get(db.getFullName());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ public Set<String> getTableNames() throws MetaNotFoundException {
return Sets.newHashSet(table.getName());
}

public void readFields(DataInput in) throws IOException {
@Override
protected void readFields(DataInput in) throws IOException {
super.readFields(in);
tableId = in.readLong();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ public void write(DataOutput out) throws IOException {
Text.writeString(out, GsonUtils.GSON.toJson(this));
}

public void readFields(DataInput in) throws IOException {
protected void readFields(DataInput in) throws IOException {

if (!isJobTypeRead) {
jobType = EtlJobType.valueOf(Text.readString(in));
Expand Down

0 comments on commit 06be42a

Please sign in to comment.