diff --git a/src/Cache.cpp b/src/Cache.cpp index 45fc852d..bc364c34 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp @@ -1135,7 +1135,7 @@ Cache::runMigrations() [this]() { try { auto txn = lmdb::txn::begin(env_, nullptr); - auto try_drop = [this, &txn](const std::string &dbName) { + auto try_drop = [&txn](const std::string &dbName) { try { auto db = lmdb::dbi::open(txn, dbName.c_str()); db.drop(txn, true);