Fix copy constructors of Options and ColumnFamilyOptions (#9166)

Summary:
Looks like some fields are not copied by the copy constructor.

Please confirm if it is a real issue!

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

Reviewed By: jay-zhuang

Differential Revision: D32532093

Pulled By: mrambacher

fbshipit-source-id: f636ef9425a530a8655947115160ae471916252b
main
Davide Angelocola 3 years ago committed by Facebook GitHub Bot
parent eca85cdb66
commit 8a97c541e4
  1. 1
      java/src/main/java/org/rocksdb/ColumnFamilyOptions.java
  2. 3
      java/src/main/java/org/rocksdb/Options.java

@ -52,6 +52,7 @@ public class ColumnFamilyOptions extends RocksObject
this.bottommostCompressionOptions_ = other.bottommostCompressionOptions_;
this.compressionOptions_ = other.compressionOptions_;
this.compactionThreadLimiter_ = other.compactionThreadLimiter_;
this.sstPartitionerFactory_ = other.sstPartitionerFactory_;
}
/**

@ -92,6 +92,9 @@ public class Options extends RocksObject
this.rowCache_ = other.rowCache_;
this.writeBufferManager_ = other.writeBufferManager_;
this.compactionThreadLimiter_ = other.compactionThreadLimiter_;
this.bottommostCompressionOptions_ = other.bottommostCompressionOptions_;
this.walFilter_ = other.walFilter_;
this.sstPartitionerFactory_ = other.sstPartitionerFactory_;
}
@Override

Loading…
Cancel
Save