Skip to content

Commit

Permalink
Shut down the account map database.
Browse files Browse the repository at this point in the history
  • Loading branch information
td202 committed Nov 23, 2023
1 parent 09d8d64 commit 222c1a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions concordium-consensus/src/Concordium/MultiVersion.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1435,7 +1435,10 @@ shutdownMultiVersionRunner MultiVersionRunner{..} = mask_ $ do
-- Acquire the write lock. This prevents further updates, as they will block.
takeMVar mvWriteLock
versions <- readIORef mvVersions
-- Shut down the consensus databases.
runLoggerT (forM_ versions evcShutdown) mvLog
-- Shut down the global account map.
LMDBAccountMap.closeDatabase (globalAccountMap (mvcStateConfig mvConfiguration))

-- | Lift a version-0 consensus skov action to the 'MVR' monad, running it on a
-- particular 'VersionedConfigurationV0'. Note that this does not
Expand Down

0 comments on commit 222c1a2

Please sign in to comment.