mirror of
https://github.com/HKUDS/LightRAG.git
synced 2025-09-27 09:04:13 +00:00
Fix data persistence issue in NanoVectorDBStorage
This commit is contained in:
parent
48d9800573
commit
41eff2ca2f
@ -217,7 +217,7 @@ class NanoVectorDBStorage(BaseVectorStorage):
|
|||||||
async with self._storage_lock:
|
async with self._storage_lock:
|
||||||
try:
|
try:
|
||||||
# Save data to disk
|
# Save data to disk
|
||||||
self._get_client.save()
|
self._client.save()
|
||||||
# Notify other processes that data has been updated
|
# Notify other processes that data has been updated
|
||||||
await set_all_update_flags(self.namespace)
|
await set_all_update_flags(self.namespace)
|
||||||
# Reset own update flag to avoid self-reloading
|
# Reset own update flag to avoid self-reloading
|
||||||
|
Loading…
x
Reference in New Issue
Block a user