Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Python Rocksdb
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
Python Rocksdb
Commits
bfb370fd
Commit
bfb370fd
authored
11 years ago
by
hofmockel
Browse files
Options
Downloads
Patches
Plain Diff
Add new option called verify_checksums_in_compaction
parent
9b907367
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/api/options.rst
+8
-0
8 additions, 0 deletions
docs/api/options.rst
rocksdb/_rocksdb.pyx
+6
-0
6 additions, 0 deletions
rocksdb/_rocksdb.pyx
rocksdb/options.pxd
+1
-0
1 addition, 0 deletions
rocksdb/options.pxd
with
15 additions
and
0 deletions
docs/api/options.rst
+
8
−
0
View file @
bfb370fd
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
rocksdb/_rocksdb.pyx
+
6
−
0
View file @
bfb370fd
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
rocksdb/options.pxd
+
1
−
0
View file @
bfb370fd
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment