Skip to content

Commit

Permalink
Display the pinning policy options same as block_cache/metadata_cache
Browse files Browse the repository at this point in the history
  • Loading branch information
udi-speedb committed Jan 7, 2024
1 parent 3a9d995 commit 06d9deb
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 @@ -22,6 +22,7 @@ Based on RocksDB 8.6.7
* Compaction: Restore SetupForCompaction functionality. Specifically, hint POSIX_FADV_NORMAL for compaction input files.See https://github.com/speedb-io/speedb/issues/787 for full details.
* stress test: Fix TestIterateAgainstExpected not supporting 0 iterations. TestIterateAgainstExpected was not designed to support value of 0 in FLAGS_num_iterations.
RocksDB has a value of 10 by default and we've added the option to randomize the values from 0 to 100 in https://github.com/speedb-io/speedb/commit/434692a63318036a3995a53001337f18bf467903
* LOG Consistency:Display the pinning policy options same as block cache options / metadata cache options (#804).

### Miscellaneous
* Remove leftover references to ROCKSDB_LITE (#755).
Expand Down
6 changes: 3 additions & 3 deletions plugin/speedb/pinning_policy/scoped_pinning_policy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,16 @@ std::string ScopedPinningPolicy::GetPrintableOptions() const {
char buffer[kBufferSize];

snprintf(buffer, kBufferSize,
" pinning_policy.capacity: %" ROCKSDB_PRIszt "\n",
" capacity: %" ROCKSDB_PRIszt "\n",
options_.capacity);
ret.append(buffer);

snprintf(buffer, kBufferSize,
" pinning_policy.last_level_with_data_percent: %" PRIu32 "\n",
" last_level_with_data_percent: %" PRIu32 "\n",
options_.last_level_with_data_percent);
ret.append(buffer);

snprintf(buffer, kBufferSize, " pinning_policy.mid_percent: %" PRIu32 "\n",
snprintf(buffer, kBufferSize, " mid_percent: %" PRIu32 "\n",
options_.mid_percent);
ret.append(buffer);

Expand Down

0 comments on commit 06d9deb

Please # to comment.