twmht
9fcafffbf4
add default merge operator
2017-04-16 14:13:01 +08:00
twmht
58ba17ac90
Merge options source_compaction_factor, max_grandparent_overlap_bytes and expanded_compaction_factor into max_compaction_bytes
2017-04-08 00:18:38 +08:00
twmht
056d62d43d
now support rocksdb 5.3.0
2017-03-24 00:56:24 +08:00
hofmockel
01f13577ad
Add "row_cache" to options.
2015-08-30 12:21:40 +02:00
hofmockel
6b54dc9e64
No need for the 'get_ob' methods on PyCache.
2015-08-30 12:20:45 +02:00
hofmockel
167ee99f33
Change API of compact_range to be compatible with the change of rocksdb.
2015-08-27 21:45:09 +02:00
hofmockel
8fba5ffa1d
Wrap the RepairDB function.
2015-08-15 16:34:35 +02:00
hofmockel
aee8dbe540
Remove prints from the tests.
2015-07-05 14:16:20 +02:00
hofmockel
2ef04007c4
Add lz4 compression type.
2015-07-05 13:52:17 +02:00
hofmockel
302d1a6440
Make it possible to iterate over a WriteBatch.
2015-07-05 13:35:15 +02:00
hofmockel
cd545c7ac0
Update the declaration with rocksdb.
2015-04-12 14:09:02 +02:00
hofmockel
8b26e1e4b0
Get rid of depricated way to create backupengine.
2015-04-12 14:08:30 +02:00
hofmockel
0c13b55e55
Remove rm_scan_count_limit from Cache creation.
2015-04-12 13:58:22 +02:00
hofmockel
b9f06fe785
Remove table_cache_remove_scan_count_limit because it is also removed from rocksdb.
2015-04-12 13:51:28 +02:00
hofmockel
2cbeb48c17
Type has changed with rocksdb 3.6
2014-10-22 20:58:59 +02:00
hofmockel
9cf520a77b
Update the tests.
2014-10-22 20:54:25 +02:00
hofmockel
87a7ddfe1c
Move filter_policy to block_based_table_factory.
2014-10-22 09:43:47 +02:00
hofmockel
5550ed91e7
Move the block_cache* from options to block_based_table_factory.
2014-10-22 09:41:33 +02:00
hofmockel
14dd1c785a
Move the 'simple' block based table options to the block_table_factory.
2014-10-22 09:35:17 +02:00
hofmockel
3358119f22
Remove deprecated options.
2014-10-22 09:31:46 +02:00
hofmockel
8a0bd3a24e
Change include path and get rid of the warning.
2014-08-22 20:08:30 +02:00
hofmockel
e3aa17dc3a
Fix unittest
2014-08-22 20:08:20 +02:00
hofmockel
a3072c79b3
Document the new init-methods for the SST-table-builders
2014-08-22 19:58:17 +02:00
hofmockel
13518d2680
Remove TotalOrderPlainTableFactory. It was also removed in rocksdb.
2014-08-22 19:15:46 +02:00
hofmockel
f4c5aed418
Make the 'compact_range' call available in python
...
(cherry picked from commit c6e4014136
)
2014-05-31 20:25:06 +02:00
hofmockel
f897bf4911
Adapt to the changes of 'prefix seek api'
...
See https://github.com/facebook/rocksdb/wiki/Prefix-Seek-API-Changes
2014-05-31 20:21:42 +02:00
hofmockel
6ceb6514b5
Allow configuration of universal style compaction
2014-04-29 17:46:21 +02:00
hofmockel
1cb9ec4ee1
Allow it to configure the memtable representation
2014-04-28 20:32:33 +02:00
hofmockel
482379cf94
Add support for the 'PlainTableFactories'
2014-04-27 19:20:30 +02:00
hofmockel
5dfc823ac3
Change .pxd files to reflect changed rocksdb API's
2014-04-27 16:39:50 +02:00
hofmockel
bfb370fdc8
Add new option called verify_checksums_in_compaction
2014-04-27 16:39:17 +02:00
hofmockel
9d11bb0fb2
Get rid of some warnings
2014-04-01 21:32:18 +02:00
hofmockel
98301a8ccb
Be nice and mark them as virutal
2014-04-01 21:31:03 +02:00
hofmockel
dca6b61bbb
Update the default values for some options
2014-04-01 21:25:52 +02:00
hofmockel
098f9578d6
Change prefix_extractor to smart-pointer instead of raw
2014-04-01 21:24:18 +02:00
hofmockel
f16daf0a41
Add python wrapper for BackupEngine
2014-02-02 17:43:00 +01:00
hofmockel
f0e0512a5f
Add definitions to wrap BackupEngine
2014-02-02 17:43:00 +01:00
hofmockel
8ef2a13476
Better error messages
2014-01-26 10:50:44 +01:00
hofmockel
44cd1978af
Make tests python3 ready
2014-01-26 10:45:36 +01:00
hofmockel
41fc293cb8
Better error reporting for a python prefix extractor
2014-01-26 10:45:06 +01:00
hofmockel
f16932b325
Small code reformat
2014-01-26 09:49:07 +01:00
hofmockel
0dca8c379e
Better error reporting in python filter policy
2014-01-26 09:47:04 +01:00
hofmockel
9133c81f9e
Get rid of the second context, not needed it is always the same
2014-01-24 17:18:29 +01:00
hofmockel
a83a15e1a8
Better error reporting in python comparators
...
* Written to the rocksdb log-file
* raise an exception back to rocksdb
2014-01-24 17:11:41 +01:00
hofmockel
b600d3371f
Get access to the dedicated logger of a DB
2014-01-24 17:06:26 +01:00
hofmockel
43a6997362
Fix deadlock on shutdown by releasing the GIL during del
...
On delete rocksdb waits for the background thread to finish.
However the background threads needs the GIL to execute python-code
(for example comparator)
=>
* main thread has GIL
* main thread waits for background thread
* background thread tries to get GIL
which means deadlock
2014-01-24 17:03:14 +01:00
hofmockel
c8b92d5adb
Fore future use, prevent options beeing shared with other DB objects
...
For better logging I'm going to inject the rocksdb info_logger into the C++ Wrapper classes
=> The classes on the options object have a member to a DB specific logger
=> This c++ classes can only belong to a SINGLE db
=> For simplicity make this requirement also for the options object itself
2014-01-23 08:53:14 +01:00
hofmockel
a4c93f7144
__dealloc__ is also called if __cinit__ raises, be more robust in freeing
2014-01-23 08:34:26 +01:00
hofmockel
6ad545cea0
Fix possible crash if snapshot and DB take part in cyclic gargabe collection
...
The cyclic garbage collector may choose this snappshot object to break the
cycle. In that case tp_clear will remove the reference to self.db.
So if __dealloc__ of the snapshot is called, self.db is not valid anymore
2014-01-23 08:10:51 +01:00
hofmockel
a1cb7f9efc
Raise error if offset+size is too big
2014-01-21 17:34:01 +01:00