Skip to content

Commit

Permalink
v1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ddcw committed Jul 10, 2024
1 parent 81b45c2 commit baa9a72
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions ibd2sql/innodb_page_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,8 @@ def _read_all_row(self):
else:
ROW_VERSION = -1

if self.table.mysqld_version_id < 80029 and self.table.mysqld_version_id >=80012 and rheader.instant:
# 8.0.12-28的add column
if self.table.mysqld_version_id < 80029 and self.table.mysqld_version_id >=80012 and rheader.instant_flag:
_COLUMN_COUNT = self._read_innodb_varsize()
# 1-2字节表示字段数量(含row_id,trx,rollptr),
self.debug(f"_COLUMN_COUNT:{_COLUMN_COUNT}")
Expand Down Expand Up @@ -345,15 +346,15 @@ def _read_all_row(self):
# null_bitmask_count = self.table.null_bitmask_count + self.table.null_bitmask_count_instant


null_bitmask_count = 0
for colno in self.table.column:
col = self.table.column[colno]
#print(col['name'],ROW_VERSION,col['version_dropped'],col['version_added'])
if col['is_nullable']:
if col['version_dropped'] > col['version_added'] :#and col['version_added'] >= ROW_VERSION:
pass
else:
null_bitmask_count += 1
# null_bitmask_count = 0
# for colno in self.table.column:
# col = self.table.column[colno]
# #print(col['name'],ROW_VERSION,col['version_dropped'],col['version_added'])
# if col['is_nullable']:
# if col['version_dropped'] > col['version_added'] :#and col['version_added'] >= ROW_VERSION:
# pass
# else:
# null_bitmask_count += 1

null_bitmask_count = 0
for _phno,colno in self.table.column_ph:
Expand Down

0 comments on commit baa9a72

Please sign in to comment.