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

Method sync

java/src/main/java/org/rocksdb/WriteOptions.java:87–89  ·  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

()

Source from the content-addressed store, hash-verified

85 * @return boolean value indicating if sync is active.
86 */
87 public boolean sync() {
88 return sync(nativeHandle_);
89 }
90
91 /**
92 * If true, writes will not first go to the write ahead log,

Callers 2

writeOptionsMethod · 0.95
copyConstructorMethod · 0.95

Calls

no outgoing calls

Tested by 2

writeOptionsMethod · 0.76
copyConstructorMethod · 0.76