MCPcopy Create free account
hub / github.com/questdb/questdb / close

Method close

core/src/main/java/io/questdb/log/LogFileWriter.java:88–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86 }
87
88 @Override
89 public void close() {
90 if (buf != 0) {
91 if (_wptr > buf) {
92 flush();
93 }
94 Unsafe.free(buf, bufSize, MemoryTag.NATIVE_LOGGER);
95 buf = 0;
96 }
97 if (this.fd != -1) {
98 Files.close(this.fd);
99 this.fd = -1;
100 }
101 }
102
103 public int getBufSize() {
104 return bufSize;

Callers

nothing calls this directly

Calls 3

flushMethod · 0.95
freeMethod · 0.95
closeMethod · 0.95

Tested by

no test coverage detected