]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rocksdb/java/src/test/java/org/rocksdb/IngestExternalFileOptionsTest.java
import 14.2.4 nautilus point release
[ceph.git] / ceph / src / rocksdb / java / src / test / java / org / rocksdb / IngestExternalFileOptionsTest.java
index 83e0dd17af41eb54fdb41d5df66530cebd8233b7..a3973ccd9c5717124c9c627aab7d428db79f25ac 100644 (file)
@@ -84,4 +84,24 @@ public class IngestExternalFileOptionsTest {
       assertThat(options.allowBlockingFlush()).isEqualTo(allowBlockingFlush);
     }
   }
+
+  @Test
+  public void ingestBehind() {
+    try (final IngestExternalFileOptions options =
+             new IngestExternalFileOptions()) {
+      assertThat(options.ingestBehind()).isFalse();
+      options.setIngestBehind(true);
+      assertThat(options.ingestBehind()).isTrue();
+    }
+  }
+
+  @Test
+  public void writeGlobalSeqno() {
+    try (final IngestExternalFileOptions options =
+             new IngestExternalFileOptions()) {
+      assertThat(options.writeGlobalSeqno()).isTrue();
+      options.setWriteGlobalSeqno(false);
+      assertThat(options.writeGlobalSeqno()).isFalse();
+    }
+  }
 }