Skip to content

Commit

Permalink
Add early check for addExpiration.
Browse files Browse the repository at this point in the history
  • Loading branch information
callumbirks committed Oct 15, 2024
1 parent 41bd529 commit c92e3da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions LiteCore/Storage/SQLiteKeyStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ namespace litecore {

// Adds the 'expiration' column to the table.
void SQLiteKeyStore::addExpiration() {
if ( _hasExpirationColumn ) return;
db().withFileLock([=]() {
if ( mayHaveExpiration() ) return;
db()._logVerbose("Adding the `expiration` column & index to kv_%s", name().c_str());
Expand Down

0 comments on commit c92e3da

Please sign in to comment.