MCPcopy Create free account
hub / github.com/LUX-Core/lux / Flush

Method Flush

src/db.cpp:330–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330void CDB::Flush()
331{
332 if (activeTxn)
333 return;
334
335 // Flush database activity from memory pool to disk log
336 unsigned int nMinutes = 0;
337 if (fReadOnly)
338 nMinutes = 1;
339
340 bitdb.dbenv->txn_checkpoint(nMinutes ? GetArg("-dblogsize", 100) * 1024 : 0, nMinutes, 0);
341}
342
343void CDB::Close()
344{

Callers 4

PrepareShutdownFunction · 0.45
FlushStateToDiskFunction · 0.45
DisconnectTipFunction · 0.45
ConnectTipFunction · 0.45

Calls 8

GetArgFunction · 0.85
GetTimeMillisFunction · 0.85
LogPrintFunction · 0.85
lsn_resetMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected