]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
improve copying of Env in Options (#10666)
authorAlan Paxton <alan.paxton@gmail.com>
Tue, 22 Nov 2022 23:48:59 +0000 (15:48 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 22 Nov 2022 23:48:59 +0000 (15:48 -0800)
commitae115eff8f3210b17d098731335bcdb767632d4d
tree5fb3bfc32c34b6bfac5054db488afbe370d46e1c
parentdb9cbddc6fbf95d9baee7c51ff0bda3e9d36982d
improve copying of Env in Options (#10666)

Summary:
Closes https://github.com/facebook/rocksdb/issues/9909

- Constructing an Options from a DBOptions should use the Env from the DBOptions
- DBOptions should be constructed with the default Env as the env_, rather than null. Why ever not ?

Pull Request resolved: https://github.com/facebook/rocksdb/pull/10666

Reviewed By: riversand963

Differential Revision: D40515418

Pulled By: ajkr

fbshipit-source-id: 4122ba3f537660720262694c21ab4bfb13b6f8de
java/src/main/java/org/rocksdb/DBOptions.java
java/src/main/java/org/rocksdb/Options.java
java/src/test/java/org/rocksdb/MixedOptionsTest.java