@@ -166,7 +166,7 @@ struct TitanCFOptions : public ColumnFamilyOptions {
166
166
// support hole punching, such as ext4, xfs, btrfs, etc.
167
167
//
168
168
// Default: false
169
- bool hole_punching_gc {false };
169
+ bool enable_punch_hole_gc {false };
170
170
171
171
TitanCFOptions () = default ;
172
172
explicit TitanCFOptions (const ColumnFamilyOptions& options)
@@ -197,7 +197,8 @@ struct ImmutableTitanCFOptions {
197
197
min_gc_batch_size(opts.min_gc_batch_size),
198
198
merge_small_file_threshold(opts.merge_small_file_threshold),
199
199
level_merge(opts.level_merge),
200
- skip_value_in_compaction_filter(opts.skip_value_in_compaction_filter) {}
200
+ skip_value_in_compaction_filter(opts.skip_value_in_compaction_filter),
201
+ enable_punch_hole_gc(opts.enable_punch_hole_gc) {}
201
202
202
203
uint64_t blob_file_target_size;
203
204
@@ -212,6 +213,8 @@ struct ImmutableTitanCFOptions {
212
213
bool level_merge;
213
214
214
215
bool skip_value_in_compaction_filter;
216
+
217
+ bool enable_punch_hole_gc;
215
218
};
216
219
217
220
struct MutableTitanCFOptions {
@@ -221,14 +224,12 @@ struct MutableTitanCFOptions {
221
224
: blob_run_mode(opts.blob_run_mode),
222
225
min_blob_size(opts.min_blob_size),
223
226
blob_file_compression(opts.blob_file_compression),
224
- blob_file_discardable_ratio(opts.blob_file_discardable_ratio),
225
- hole_punching_gc(opts.hole_punching_gc) {}
227
+ blob_file_discardable_ratio(opts.blob_file_discardable_ratio) {}
226
228
227
229
TitanBlobRunMode blob_run_mode;
228
230
uint64_t min_blob_size;
229
231
CompressionType blob_file_compression;
230
232
double blob_file_discardable_ratio;
231
- bool hole_punching_gc;
232
233
};
233
234
234
235
struct TitanOptions : public TitanDBOptions , public TitanCFOptions {
0 commit comments