Skip to content

Commit 2766a03

Browse files
connernilsenmeta-codesync[bot]
authored andcommitted
Fix deadlock in build system
Summary: Not sure why this is causing a deadlock, but removing this seems to fix it Reviewed By: yangdanny97 Differential Revision: D85486375 fbshipit-source-id: 19e3c6a6aa8327fb369c0f56992725151733a625
1 parent 5436a94 commit 2766a03

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

crates/pyrefly_build/src/source_db/query_source_db.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,6 @@ impl QuerySourceDatabase {
119119
}
120120
}
121121
}
122-
let read = self.inner.read();
123-
// Check one more time to make sure nobody else did this already.
124-
// Realistically this shouldn't happen, since in LSP mode we only have one
125-
// sourcedb reload task at a time.
126-
if new_db == read.db {
127-
debug!("No source DB changes from Buck query");
128-
return false;
129-
}
130-
drop(read);
131122
let mut write = self.inner.write();
132123
write.db = new_db;
133124
write.path_lookup = path_lookup;

0 commit comments

Comments
 (0)