Function SCPEnvelopeStore.unlock

Lock / Unlock the underlying database for updates

void unlock (
  bool commit
) @trusted;

This store uses the cacheDB for storing the envelopes across restarts. When performing an update, one needs to first lock the DB to ensure that even in the case of a machine crash, the data will be consistent.

Parameters

NameDescription
commit Whether this unlock should be a commit (true) or a rollback.