MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / shutdown

Method shutdown

graphlite/src/storage/storage_manager.rs:693–705  ·  view source on GitHub ↗

Explicitly shutdown the storage manager and release file locks This should be called before dropping to ensure clean resource cleanup

(&self)

Source from the content-addressed store, hash-verified

691 /// Explicitly shutdown the storage manager and release file locks
692 /// This should be called before dropping to ensure clean resource cleanup
693 pub fn shutdown(&self) -> Result<(), StorageError> {
694 // Just flush for now - the main issue is ensuring proper drop order
695 // in the test environments
696
697 // Flush persistent store
698 if let Some(_persistent_store) = &self.persistent_store {
699 // We can't call shutdown since it requires &mut, but flush should be sufficient
700 // The key is ensuring proper drop order in tests
701 debug!("Flushing storage manager during shutdown");
702 }
703
704 Ok(())
705 }
706}
707
708impl std::fmt::Debug for StorageManager {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected