This is an automated email from the ASF dual-hosted git repository. rpuch pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/ignite-3.git
The following commit(s) were added to refs/heads/main by this push: new 351fb7ab03 IGNITE-22176 Propagate Env from parent RocksDb in RocksSnapshotManager (#3710) 351fb7ab03 is described below commit 351fb7ab037c62df1ecf8ea741e053cea62b5f6a Author: Tiago Marques Godinho <tmgodi...@ua.pt> AuthorDate: Wed May 8 15:50:43 2024 +0100 IGNITE-22176 Propagate Env from parent RocksDb in RocksSnapshotManager (#3710) Co-authored-by: Tiago Marques Godinho <metal...@gmail.com> --- .../apache/ignite/internal/rocksdb/snapshot/RocksSnapshotManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/rocksdb-common/src/main/java/org/apache/ignite/internal/rocksdb/snapshot/RocksSnapshotManager.java b/modules/rocksdb-common/src/main/java/org/apache/ignite/internal/rocksdb/snapshot/RocksSnapshotManager.java index 3b487f032e..4f485c3850 100644 --- a/modules/rocksdb-common/src/main/java/org/apache/ignite/internal/rocksdb/snapshot/RocksSnapshotManager.java +++ b/modules/rocksdb-common/src/main/java/org/apache/ignite/internal/rocksdb/snapshot/RocksSnapshotManager.java @@ -150,10 +150,10 @@ public class RocksSnapshotManager { * @param snapshot Point-in-time snapshot. * @param snapshotDir Directory to put the SST file in. */ - private static void createSstFile(ColumnFamilyRange range, Snapshot snapshot, Path snapshotDir) { + private void createSstFile(ColumnFamilyRange range, Snapshot snapshot, Path snapshotDir) { try ( EnvOptions envOptions = new EnvOptions(); - Options options = new Options(); + Options options = new Options().setEnv(db.getEnv()); SstFileWriter sstFileWriter = new SstFileWriter(envOptions, options); RocksIterator it = snapshotIterator(range, snapshot) ) {