Fix data persistence issue in NanoVectorDBStorage

This commit is contained in:
yangdx
2025-03-01 13:35:00 +08:00
parent 48d9800573
commit 41eff2ca2f

View File

@@ -217,7 +217,7 @@ class NanoVectorDBStorage(BaseVectorStorage):
async with self._storage_lock:
try:
# Save data to disk
self._get_client.save()
self._client.save()
# Notify other processes that data has been updated
await set_all_update_flags(self.namespace)
# Reset own update flag to avoid self-reloading