Fix db_bench build break with blob db
Summary:
Lite build does not recognize FLAGS_use_blob_db. Fixing it.
Closes https://github.com/facebook/rocksdb/pull/2372
Reviewed By: anirbanr-fb
Differential Revision:
D5130773
Pulled By: yiwu-arbug
fbshipit-source-id:
43131d9d0be5811f2129af562be72cca26369cb3
Fix rocksdb.estimate-num-keys DB property underflow
Summary:
rocksdb.estimate-num-keys is compute from `estimate_num_keys - 2 * estimate_num_deletes`. If `2 * estimate_num_deletes > estimate_num_keys` it will underflow. Fixing it.
Closes https://github.com/facebook/rocksdb/pull/2348
Differential Revision:
D5109272
Pulled By: yiwu-arbug
fbshipit-source-id:
e1bfb91346a59b7282a282b615002507e9d7c246
Facility for cross-building RocksJava using Docker
Summary:
As an alternative to Vagrant, we can now also use Docker to cross-build RocksDB. The advantages are:
1. The Docker images are fixed; they include all the latest updates and build tools.
2. The Vagrant image, required scripts that ran for every build that would update CentOS and install the buildtools. This lead to slow repeatable builds, we don't need to do this with Docker as they are already in the provided images.
The Docker images I have used have their Docker build files here: https://github.com/evolvedbinary/docker-rocksjava and the images themselves are available from Docker hub: https://hub.docker.com/r/evolvedbinary/rocksjava/
I have added the following targets to the `Makefile`:
1. `rocksdbjavastaticreleasedocker` this uses Docker to perform the cross-builds. It is basically the Docker version of the existing Vagrant `rocksdbjavastaticrelease` target.
2. `rocksdbjavastaticpublishdocker` delegates to `rocksdbjavastaticreleasedocker` and then `rocksdbjavastaticpublishcentral` to upload the artiacts to Maven Central. Equivalent to the existing Vagrant target: `rocksdbjavastaticpublish`
Closes https://github.com/facebook/rocksdb/pull/2278
Differential Revision:
D5048206
Pulled By: yiwu-arbug
fbshipit-source-id:
78fa96ef9d966fe09638ed01de282cd4e31961a9
Make sure that zstd is statically linked correctly in the Java static build
Summary:
Closes https://github.com/facebook/rocksdb/issues/2280
Closes https://github.com/facebook/rocksdb/pull/2292
Differential Revision:
D5061259
Pulled By: sagar0
fbshipit-source-id:
eec89111d114c04beee5870a4eb4b51857754783
Build and link with ZStd when creating the static RocksJava build
Summary: Closes https://github.com/facebook/rocksdb/pull/2279
Differential Revision:
D5048161
Pulled By: yiwu-arbug
fbshipit-source-id:
43742ff93137e0a35ea7e855692c9e9a0cd41968
s/std::snprintf/snprintf
Summary:
Looks like std::snprintf is not available on all platforms (e.g. MSVC 2010). Change it back to snprintf, where we have a macro in port.h to workaround compatibility.
Closes https://github.com/facebook/rocksdb/pull/2308
Differential Revision:
D5070988
Pulled By: yiwu-arbug
fbshipit-source-id:
bedfc1660bab0431c583ad434b7e68265e1211b1
Fix build error with blob DB.
Summary:
snprintf is in <stdio.h> and not in namespace std.
Closes https://github.com/facebook/rocksdb/pull/2287
Reviewed By: anirbanr-fb
Differential Revision:
D5054752
Pulled By: yiwu-arbug
fbshipit-source-id:
356807ec38f3c7d95951cdb41f31a3d3ae0714d4
Fixes the CentOS 5 cross-building of RocksJava
Summary:
Updates to CentOS 5 have been archived as CentOS 5 is EOL. We now pull the updates from the vault. This is a stop gap solution, I will send a PR in a couple days which uses fixed Docker containers (with the updates pre-installed) instead.
sagar0 Here you go :-)
Closes https://github.com/facebook/rocksdb/pull/2270
Differential Revision:
D5033637
Pulled By: sagar0
fbshipit-source-id:
a9312dd1bc18bfb8653f06ffa0a1512b4415720d