MCPcopy Create free account
hub / github.com/bytedance/terarkdb / setSync

Method setSync

java/src/main/java/org/rocksdb/WriteOptions.java:64–67  ·  view source on GitHub ↗

If true, the write will be flushed from the operating system buffer cache (by calling WritableFile::Sync()) before the write is considered complete. If this flag is true, writes will be slower. If this flag is false, and the machine crashes, some recent writes may be lost. Note that if it is just

(final boolean flag)

Source from the content-addressed store, hash-verified

62 * @return the instance of the current WriteOptions.
63 */
64 public WriteOptions setSync(final boolean flag) {
65 setSync(nativeHandle_, flag);
66 return this;
67 }
68
69 /**
70 * If true, the write will be flushed from the operating system

Callers 8

runMethod · 0.95
writeOptionsMethod · 0.95
copyConstructorMethod · 0.95
mainMethod · 0.45
prepareWriteOptionsMethod · 0.45
syncMethod · 0.45
failSetSyncIfDisposedMethod · 0.45
writeOptionsMethod · 0.45

Calls

no outgoing calls

Tested by 5

writeOptionsMethod · 0.76
copyConstructorMethod · 0.76
syncMethod · 0.36
failSetSyncIfDisposedMethod · 0.36
writeOptionsMethod · 0.36