Skip to content

Commit f0f7d81

Browse files
committed
Disable debugging log
Signed-off-by: JaySon-Huang <tshent@qq.com>
1 parent 96ceb7f commit f0f7d81

File tree

5 files changed

+18
-0
lines changed

5 files changed

+18
-0
lines changed

dbms/src/Storages/KVStore/Decode/PartitionStreams.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ static inline bool atomicReadWrite(
159159
std::tie(decoding_schema_snapshot, block_ptr)
160160
= storage->getSchemaSnapshotAndBlockForDecoding(lock, true, should_handle_version_col);
161161
block_decoding_schema_epoch = decoding_schema_snapshot->decoding_schema_epoch;
162+
#if 0
162163
const auto & table_info = storage->getTableInfo();
163164
LOG_INFO(
164165
Logger::get("dddddddddd"),
@@ -171,6 +172,7 @@ static inline bool atomicReadWrite(
171172
table_info.update_timestamp,
172173
should_handle_version_col,
173174
table_info.columns.size());
175+
#endif
174176

175177
auto reader = RegionBlockReader(decoding_schema_snapshot);
176178
if (!reader.read(*block_ptr, data_list_read, force_decode))

dbms/src/Storages/KVStore/Decode/RegionBlockReader.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,12 @@ bool RegionBlockReader::read(Block & block, const ReadList & data_list, bool for
4444
{
4545
try
4646
{
47+
#if 0
4748
for (const auto & data : data_list)
4849
{
4950
LOG_INFO(Logger::get("dddddddddd"), "RegionBlockReader::read data.value={}", data.value->toDebugString());
5051
}
52+
#endif
5153

5254
switch (schema_snapshot->pk_type)
5355
{
@@ -182,10 +184,12 @@ struct VersionColResolver<RegionUncommittedDataList>
182184
template <TMTPKType pk_type, typename ReadList>
183185
bool RegionBlockReader::readImpl(Block & block, const ReadList & data_list, bool force_decode)
184186
{
187+
#if 0
185188
LOG_INFO(
186189
Logger::get("dddddddddd"),
187190
"RegionBlockReader::readImpl start, schema_snapshot.column_defines={}",
188191
*schema_snapshot->column_defines);
192+
#endif
189193

190194
VersionColResolver<ReadList> version_col_resolver;
191195
version_col_resolver.check(block, schema_snapshot->column_defines->size());

dbms/src/Storages/KVStore/MultiRaft/RaftCommands.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,11 +368,13 @@ std::pair<EngineStoreApplyRes, DM::WriteResult> Region::handleWriteRaftCmd(
368368
{
369369
auto tikv_key = TiKVKey(cmds.keys[i].data, cmds.keys[i].len);
370370
auto tikv_value = TiKVValue(cmds.vals[i].data, cmds.vals[i].len);
371+
#if 0
371372
LOG_INFO(
372373
Logger::get("dddddddddd"),
373374
"Region::handleWriteRaftCmd Put key={}, value={}",
374375
tikv_key.toDebugString(),
375376
tikv_value.toDebugString());
377+
#endif
376378
if (cf == ColumnFamilyType::Write)
377379
{
378380
write_put_key_count++;

dbms/src/Storages/StorageDeltaMerge.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,6 +1254,7 @@ std::pair<DB::DecodingStorageSchemaSnapshotConstPtr, BlockUPtr> StorageDeltaMerg
12541254
store->getHandle(),
12551255
decoding_schema_epoch++,
12561256
with_version_column);
1257+
#if 0
12571258
LOG_INFO(
12581259
Logger::get("dddddddddd"),
12591260
"Refresh decoding schema snapshot, table_id={} epoch={} update_ts={} with_version_column={} table_info={}",
@@ -1262,6 +1263,7 @@ std::pair<DB::DecodingStorageSchemaSnapshotConstPtr, BlockUPtr> StorageDeltaMerg
12621263
tidb_table_info.update_timestamp,
12631264
with_version_column,
12641265
tidb_table_info.serialize());
1266+
#endif
12651267
cache_blocks.clear();
12661268
decoding_schema_changed = false;
12671269
}

dbms/src/TiDB/Decode/RowCodec.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,11 +466,13 @@ bool appendRowV2ToBlockImpl(
466466
raw_value,
467467
num_not_null_columns,
468468
value_offsets);
469+
#if 0
469470
LOG_INFO(
470471
Logger::get("dddddddddd"),
471472
"not_null_column_ids={} null_column_ids={}",
472473
not_null_column_ids,
473474
null_column_ids);
475+
#endif
474476

475477
size_t values_start_pos = cursor;
476478
// how many not null columns have been processed
@@ -494,12 +496,14 @@ bool appendRowV2ToBlockImpl(
494496

495497
auto next_datum_column_id = is_null ? null_column_ids[idx_null] : not_null_column_ids[idx_not_null];
496498
const auto next_column_id = column_ids_iter->first;
499+
#if 0
497500
LOG_INFO(
498501
Logger::get("dddddddddd"),
499502
"next_column_id={} next_datum_column_id={} force_decode={}",
500503
next_column_id,
501504
next_datum_column_id,
502505
force_decode);
506+
#endif
503507
if (next_column_id > next_datum_column_id)
504508
{
505509
// The next_column_id to read is bigger than the next_datum_column_id in encoded row.
@@ -521,6 +525,7 @@ bool appendRowV2ToBlockImpl(
521525
// a column.
522526
// Fill with default value and continue to read data for next column id.
523527
const auto & column_info = column_infos[column_ids_iter->second];
528+
#if 0
524529
LOG_INFO(
525530
Logger::get("dddddddddd"),
526531
"appendRowV2ToBlockImpl: fill default value for missing column,"
@@ -534,6 +539,7 @@ bool appendRowV2ToBlockImpl(
534539
column_info.hasNotNullFlag(),
535540
column_info.hasNoDefaultValueFlag(),
536541
applyVisitor(FieldVisitorToString(), column_info.defaultValueToField()));
542+
#endif
537543
if (!addDefaultValueToColumnIfPossible(
538544
column_info,
539545
block,
@@ -615,6 +621,7 @@ bool appendRowV2ToBlockImpl(
615621
if (column_ids_iter->first != pk_handle_id)
616622
{
617623
const auto & column_info = column_infos[column_ids_iter->second];
624+
#if 0
618625
LOG_INFO(
619626
Logger::get("dddddddddd"),
620627
"appendRowV2ToBlockImpl: fill default value for missing column,"
@@ -626,6 +633,7 @@ bool appendRowV2ToBlockImpl(
626633
column_info.hasNotNullFlag(),
627634
column_info.hasNoDefaultValueFlag(),
628635
applyVisitor(FieldVisitorToString(), column_info.defaultValueToField()));
636+
#endif
629637
if (!addDefaultValueToColumnIfPossible(
630638
column_info,
631639
block,

0 commit comments

Comments
 (0)