Function SCPEnvelopeStore.lock

Lock / Unlock the underlying database for updates

void lock() @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.