Skip to content

Commit

Permalink
Log Improvement: Display cf names in rolled logs with their options (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
udi-speedb committed Dec 5, 2023
1 parent 7756fb7 commit d8da6f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Based on RocksDB 8.1.1
* CI: add a workflow for building and publishing jar to maven central (#507)
* LOG: Compaction job traces - report cf name and job id (#511)
* db_stress: Add cost_write_buffer_to_cache flag (#513)
* LOG: Display cf names in rolled logs with their options (#419)
* Log Improvement: Report the name of cf-s whose options are skipped in the log (#520)

### Bug Fix
Expand Down
6 changes: 3 additions & 3 deletions db/column_family.cc
Original file line number Diff line number Diff line change
Expand Up @@ -614,9 +614,9 @@ ColumnFamilyData::ColumnFamilyData(
}

if (column_family_set_->NumberOfColumnFamilies() < 10) {
ROCKS_LOG_INFO(ioptions_.logger,
"--------------- Options for column family [%s]:\n",
name.c_str());
ROCKS_LOG_HEADER(ioptions_.logger,
"--------------- Options for column family [%s]:\n",
name.c_str());
initial_cf_options_.Dump(ioptions_.logger);
} else {
ROCKS_LOG_INFO(ioptions_.logger,
Expand Down

0 comments on commit d8da6f3

Please sign in to comment.