Commit 76d46b8
fix: only swallow client-level Collection Exists for shared-table/metadata paths
The code-0 "Collection Exists" from the Mongo client was being
converted to DuplicateException in processException, which the local
catch in createCollection silently returned true for — bypassing
Database::createCollection()'s orphan reconciliation in non-shared
mode. Move the handling into createCollection itself where context
is available: return true for shared-tables/metadata, throw
DuplicateException otherwise so the caller can reconcile.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 3760d54 commit 76d46b8
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
433 | 443 | | |
434 | 444 | | |
435 | 445 | | |
| |||
3520 | 3530 | | |
3521 | 3531 | | |
3522 | 3532 | | |
3523 | | - | |
3524 | | - | |
| 3533 | + | |
| 3534 | + | |
3525 | 3535 | | |
3526 | 3536 | | |
3527 | 3537 | | |
| |||
0 commit comments