Skip to content
Snippets Groups Projects
Commit bfb370fd authored by hofmockel's avatar hofmockel
Browse files

Add new option called verify_checksums_in_compaction

parent 9b907367
No related branches found
No related tags found
No related merge requests found
...@@ -617,6 +617,14 @@ Options object ...@@ -617,6 +617,14 @@ Options object
| *Type:* ``int`` | *Type:* ``int``
| *Default:* ``0`` | *Default:* ``0``
.. py:attribute:: verify_checksums_in_compaction
If ``True``, compaction will verify checksum on every read that
happens as part of compaction.
| *Type:* ``bool``
| *Default:* ``True``
.. py:attribute:: filter_deletes .. py:attribute:: filter_deletes
Use KeyMayExist API to filter deletes when this is true. Use KeyMayExist API to filter deletes when this is true.
......
...@@ -951,6 +951,12 @@ cdef class Options(object): ...@@ -951,6 +951,12 @@ cdef class Options(object):
def __set__(self, value): def __set__(self, value):
self.opts.bytes_per_sync = value self.opts.bytes_per_sync = value
property verify_checksums_in_compaction:
def __get__(self):
return self.opts.verify_checksums_in_compaction
def __set__(self, value):
self.opts.verify_checksums_in_compaction = value
property filter_deletes: property filter_deletes:
def __get__(self): def __get__(self):
return self.opts.filter_deletes return self.opts.filter_deletes
......
...@@ -98,6 +98,7 @@ cdef extern from "rocksdb/options.h" namespace "rocksdb": ...@@ -98,6 +98,7 @@ cdef extern from "rocksdb/options.h" namespace "rocksdb":
# TODO: enum { NONE, NORMAL, SEQUENTIAL, WILLNEED } access_hint_on_compaction_start # TODO: enum { NONE, NORMAL, SEQUENTIAL, WILLNEED } access_hint_on_compaction_start
cpp_bool use_adaptive_mutex cpp_bool use_adaptive_mutex
uint64_t bytes_per_sync uint64_t bytes_per_sync
cpp_bool verify_checksums_in_compaction
# TODO: CompactionStyle compaction_style # TODO: CompactionStyle compaction_style
# TODO: CompactionOptionsUniversal compaction_options_universal # TODO: CompactionOptionsUniversal compaction_options_universal
cpp_bool filter_deletes cpp_bool filter_deletes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment