MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / Close

Method Close

kayak/wal/leveldb_wal.go:181–194  ·  view source on GitHub ↗

Close implements Wal.Close.

()

Source from the content-addressed store, hash-verified

179
180// Close implements Wal.Close.
181func (p *LevelDBWal) Close() {
182 if !atomic.CompareAndSwapUint32(&p.closed, 0, 1) {
183 return
184 }
185
186 if p.it != nil {
187 p.it.Release()
188 p.it = nil
189 }
190
191 if p.db != nil {
192 p.db.Close()
193 }
194}
195
196func (p *LevelDBWal) load(logHeader []byte) (l *kt.Log, err error) {
197 l = new(kt.Log)

Callers 3

TestRuntimeFunction · 0.95
TestLevelDBWal_WriteFunction · 0.95
BenchmarkSignSignatureFunction · 0.95

Calls 1

CloseMethod · 0.65

Tested by 3

TestRuntimeFunction · 0.76
TestLevelDBWal_WriteFunction · 0.76
BenchmarkSignSignatureFunction · 0.76