Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fold in rocksdb libs (attempt 2) #2040

Open
wants to merge 317 commits into
base: master
Choose a base branch
from

Conversation

chessai
Copy link
Contributor

@chessai chessai commented Nov 13, 2024

No description provided.

kim and others added 30 commits June 11, 2012 14:46
Unfortunately, there seems to be no other way to guarantee that the CStringLens
are not GC'ed prematurely.
The trick is to use touchForeignPtr on the ByteString arguments' underlying
ForeignPtr, which is what withForeignPtr does. Luckily, Data.ByteString.Internal
is exported.
Also, drop custom env support, as it's not really useful here.
Note that this requires libleveldb 1.7
Instead of setting the 'fill_cache' option, 'set_verify_checksum' was
called incorrectly using the 'fillCache' setting.
This commit introduces Database.LevelDB.Base, which is similar to the
Database.LevelDB API, but without using resourcet/MonadResource and
using plain MonadIO instead.

The API of Database.LevelDB is kept as-is (the module now mostly
re-exports functions from Database.LevelDB.Base with some extra type
restrictions, i.e. MonadResource m).
This commit lifts the common code from iterKey and iterValue.
Fix build of 'features' example
So as to not pollute the namespace for plain 'cabal' (vs. 'cabal-dev') builds.
Bug: Fix 'fillCache' option setting
Probably not an issue, but not sure about scheduling semantics.
edmundnoble and others added 30 commits January 5, 2023 13:11
Add a Table abstraction replacing the Cas abstraction
Only include certain compiler flags if we're on x86-64
We can't control what C compiler the user has available, and `-Werror` effectively makes forward compatibility impossible. This is probably fixed in a newer RocksDB, but we haven't updated, so for now just live with what we have.
Change-Id: Ib9779b5ef7177e098eae70b72f6c49d076a0b26d
Change-Id: Id2743babf8f41ff4c31be5d4e80eee6bea5f3fc1
Change-Id: I2e59e2f14d85295fb2d66a7b7c44da60f4d6e611
Change-Id: I329c9135674a95571e2acea719180372e838ab89
Change-Id: I2f3df8e82b873399ecdfe50da0bfdc1264b1b4bb
Change-Id: I01abc5de30e169867b0aa4b5899d7d470cd404ca
Change-Id: If97cf3aecb8b931085dadf9f662af8e1879a01eb
…kadena

Change-Id: I839a5ca98be58619da178143f279f546b2c84743
Change-Id: Iaf104394f2890d051e3fd5ebe97f22e4d2eff53f
Change-Id: I383c280122c6bf3a582c7469963483e503bb90c3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.