Remove duplicated graph db lock

This commit is contained in:
yangdx 2025-06-23 18:46:01 +08:00
parent b8a2d5b223
commit ebcabe29ca

View file

@ -1901,9 +1901,6 @@ Rebuilt: {len(entities_to_rebuild)} entities, {len(relationships_to_rebuild)} re
""" """
from .utils_graph import adelete_by_entity from .utils_graph import adelete_by_entity
# Use graph database lock to ensure atomic merges and updates
graph_db_lock = get_graph_db_lock(enable_logging=False)
async with graph_db_lock:
return await adelete_by_entity( return await adelete_by_entity(
self.chunk_entity_relation_graph, self.chunk_entity_relation_graph,
self.entities_vdb, self.entities_vdb,
@ -1924,9 +1921,6 @@ Rebuilt: {len(entities_to_rebuild)} entities, {len(relationships_to_rebuild)} re
""" """
from .utils_graph import adelete_by_relation from .utils_graph import adelete_by_relation
# Use graph database lock to ensure atomic merges and updates
graph_db_lock = get_graph_db_lock(enable_logging=False)
async with graph_db_lock:
return await adelete_by_relation( return await adelete_by_relation(
self.chunk_entity_relation_graph, self.chunk_entity_relation_graph,
self.relationships_vdb, self.relationships_vdb,