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

Build RocksDB with support for unicode filenames on Windows #319

Merged
merged 1 commit into from
Jul 23, 2019
Merged

Build RocksDB with support for unicode filenames on Windows #319

merged 1 commit into from
Jul 23, 2019

Conversation

udoprog
Copy link
Contributor

@udoprog udoprog commented Jul 22, 2019

This causes RocksDB to wrap all fs operations using the wide filesystem apis:
https://github.com/facebook/rocksdb/blob/master/port/win/port_win.h#L345

Fixes #85 - even though it's already closed.

This problem was originally punted by RocksDB developers, but a solution that doesn't require a custom environment was merged in October last year.

@udoprog
Copy link
Contributor Author

udoprog commented Jul 22, 2019

Not sure if build failure is caused by this change. I've seen similar things happen using build caching before. I'm guessing it's because of how slow I/O is on WSL, which I think Travis is using.

@aleksuss
Copy link
Member

@udoprog It happens sometime on Travis. I've restarted bad job and It's ok now.

@aleksuss aleksuss merged commit b711e79 into rust-rocksdb:master Jul 23, 2019
rleungx pushed a commit to rleungx/rust-rocksdb that referenced this pull request Jun 17, 2020
Adding feature "jemalloc". When enabled, rocksdb "WITH_JEMALLOC" will be enabled. This does NOT affect whether jemalloc is use or not. Mostly it only affect how rocksdb calculate block cache size: if "WITH_JEMALLOC" is on, it will use `malloc_usable_size()` (size allocated by jemalloc) to calculate size of each entry of block cache, instead of the requested size of the allocation.

Tested by running `cargo build --features jemalloc -vv` and check rocksdb compile flags from the output.

Signed-off-by: Yi Wu <yiwu@pingcap.com>
BusyJay pushed a commit to BusyJay/rust-rocksdb that referenced this pull request Jul 23, 2020
Cherry-picking the following changes that fixes zlib, jemalloc and gflags dependencies, and fixes a flaky test:
```
6ead62c 2019-07-25 yiwu@pingcap.com     Avoid build require system zlib (rust-rocksdb#303)
9246b9c 2019-07-25 hi@breeswish.org     Skip jemalloc options on specific platform (rust-rocksdb#324)
7a8dd73 2019-07-22 yiwu@pingcap.com     Add jemalloc-sys dependency when jemalloc is enabled (rust-rocksdb#320)
6f2c632 2019-07-23 yiwu@pingcap.com     Not compile with gflags (rust-rocksdb#322)
09b8032 2019-07-22 yiwu@pingcap.com     Fix perf context test (rust-rocksdb#321)
d67f38e 2019-07-21 yiwu@pingcap.com     Add jemalloc feature (rust-rocksdb#319)
```

Also update rocksdb to fix compile error with gcc9:
```
7a03c83ed 2019-07-23 psergey@askmonty.org Fix MyRocks compile warnings-treated-as-errors on Fedora 30, gcc 9.1.1 (#5553)
```
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.

[Windows] Unicode path issue
5 participants