Add new option called verify_checksums_in_compaction

This commit is contained in:
hofmockel 2014-04-27 16:39:17 +02:00
parent 9b9073670d
commit bfb370fdc8
3 changed files with 15 additions and 0 deletions

View file

@ -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.

View file

@ -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

View file

@ -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