mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-27 07:05:54 +00:00
feat: Graceful shutdown with old web server (#2786)
- Stop accepting connections during graceful shutdown in the old web server - Stop all the services before Clio exits - Move cache saving into stop callback
This commit is contained in:
@@ -265,7 +265,7 @@ LedgerCache::saveToFile(std::string const& path) const
|
||||
}
|
||||
|
||||
impl::LedgerCacheFile file{path};
|
||||
std::unique_lock const lock{mtx_};
|
||||
std::shared_lock const lock{mtx_};
|
||||
impl::LedgerCacheFile::DataView const data{.latestSeq = latestSeq_, .map = map_, .deleted = deleted_};
|
||||
return file.write(data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user