Skip to content
This repository
Browse code

Set default max_fold_age to -1 (unlimited).

With the default max_fold_puts it allows a frozen keydir to be
reused as many times as desired as long as there are no updates.
  • Loading branch information...
commit 24b99d4332233094330f35ef9bff9e053c2bb28d 1 parent a16319d
Jon Meredith jonmeredith authored

Showing 2 changed files with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +2 2 ebin/bitcask.app
  2. +1 1  test/bctt
4 ebin/bitcask.app
@@ -60,8 +60,8 @@
60 60 %% were less than max_fold_puts updates. Otherwise it will
61 61 %% wait until all current fold keys complete and then start.
62 62 %% Set either option to -1 to disable.
63   - {max_fold_age, 1000000}, % age in micro seconds
64   - {max_fold_puts, 0}, % maximum number of updates
  63 + {max_fold_age, -1}, % age in micro seconds (unlimited)
  64 + {max_fold_puts, 0}, % maximum number of updates
65 65
66 66 %% Data expiration can be caused by setting this to a
67 67 %% Data expiration can be caused by setting this to a
2  test/bctt
@@ -74,7 +74,7 @@
74 74 frag_threshold, % Include merge >= 40% fragmentation
75 75 dead_bytes_threshold, % Include merge dead bytes > 128 MB
76 76 small_file_threshold, % Include merge file is < 10 MB
77   - max_fold_age = 1000000, % Allow keydir up to 1s old
  77 + max_fold_age = -1, % Frozen keydir can be as old as you like
78 78 max_fold_puts = 0, % as long as there are no updates
79 79 readers=0,
80 80 folders=0,

0 comments on commit 24b99d4

Please sign in to comment.
Something went wrong with that request. Please try again.