Commit 66513c8
committed
fix(qdrant): share in-memory collections dict between sync and async clients
When using location=':memory:', QdrantClient and AsyncQdrantClient each
create a separate in-memory store, so data written via the sync client is
invisible to the async client and vice versa.
Fix by sharing the underlying .collections and .aliases dicts after the
second client is initialised, so both clients always see the same data.
This makes mixed sync/async tests (e.g. sync write_documents + async
count_unique_metadata_by_filter_async) work correctly with in-memory stores.1 parent 74a993b commit 66513c8
1 file changed
Lines changed: 12 additions & 0 deletions
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
272 | 278 | | |
273 | 279 | | |
274 | 280 | | |
| |||
290 | 296 | | |
291 | 297 | | |
292 | 298 | | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
293 | 305 | | |
294 | 306 | | |
295 | 307 | | |
| |||
0 commit comments