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

Method shutdown

graphlite/src/storage/persistent/sled.rs:150–157  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

148 }
149
150 fn shutdown(&mut self) -> StorageResult<()> {
151 // Just flush to ensure data is persisted
152 // The database will remain open but file locks should be reduced
153 self.db
154 .flush()
155 .map_err(|e| StorageDriverError::BackendSpecific(e.to_string()))?;
156 Ok(())
157 }
158
159 fn open_index_tree(
160 &self,

Callers

nothing calls this directly

Calls 1

flushMethod · 0.45

Tested by

no test coverage detected