Fix data persistence issue in NanoVectorDBStorage
This commit is contained in:
parent
48d9800573
commit
41eff2ca2f
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue