summaryrefslogtreecommitdiff
path: root/databases/py-leveldb/files/patch-leveldb_object.cc
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2017-01-10 18:36:23 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2017-01-10 18:36:23 +0000
commitd5b0c609ba071292d80342f6f2f01bd3ca868d46 (patch)
tree3fe8e12663b92916f056fe1771956a33bade0993 /databases/py-leveldb/files/patch-leveldb_object.cc
parentdevel/gb: Update to version 0.4.3 (diff)
Use shared library from ports instead of bundled one
- Add patch to remove max_cache which is not in official leveldb 1.19 - Bump PORTREVISION for dependency and package change
Notes
Notes: svn path=/head/; revision=431116
Diffstat (limited to 'databases/py-leveldb/files/patch-leveldb_object.cc')
-rw-r--r--databases/py-leveldb/files/patch-leveldb_object.cc29
1 files changed, 29 insertions, 0 deletions
diff --git a/databases/py-leveldb/files/patch-leveldb_object.cc b/databases/py-leveldb/files/patch-leveldb_object.cc
new file mode 100644
index 000000000000..c76a6414b76a
--- /dev/null
+++ b/databases/py-leveldb/files/patch-leveldb_object.cc
@@ -0,0 +1,29 @@
+--- leveldb_object.cc.orig 2016-12-27 23:03:15 UTC
++++ leveldb_object.cc
+@@ -901,9 +901,8 @@ static int PyLevelDB_init(PyLevelDB* sel
+ int block_size = 4096;
+ int max_open_files = 1000;
+ int block_restart_interval = 16;
+- int max_file_size = 2 << 20;
+ const char* kwargs[] = {"filename", "create_if_missing", "error_if_exists", "paranoid_checks", "write_buffer_size",
+- "block_size", "max_open_files", "block_restart_interval", "block_cache_size", "max_file_size", "comparator", 0};
++ "block_size", "max_open_files", "block_restart_interval", "block_cache_size", "comparator", 0};
+
+ PyObject* comparator = 0;
+
+@@ -917,7 +916,6 @@ static int PyLevelDB_init(PyLevelDB* sel
+ &max_open_files,
+ &block_restart_interval,
+ &block_cache_size,
+- &max_file_size,
+ &comparator))
+ return -1;
+
+@@ -963,7 +961,6 @@ static int PyLevelDB_init(PyLevelDB* sel
+ self->_options->block_restart_interval = block_restart_interval;
+ self->_options->compression = leveldb::kSnappyCompression;
+ self->_options->block_cache = self->_cache;
+- self->_options->max_file_size = max_file_size;
+ self->_options->comparator = self->_comparator;
+ leveldb::Status status;
+