Commit 918008e
committed
refactor: remove unused SingleStoreSchemaHashWatcher interface
The SingleStoreSchemaHashWatcher interface and all its implementations
were only used for testing and not in production code. This commit
removes:
- SingleStoreSchemaHashWatcher interface and SchemaWatchCallback type
- All datastore schemawatch.go implementation files (postgres, mysql,
crdb, spanner, memdb)
- SchemaHashWatcherForTesting methods from all datastores and proxies
- UnifiedSchemaHashWatchTest test function
Changes made:
- Inlined readSchemaHash logic into SchemaHashReaderForTesting methods
- Added missing SchemaModeForTesting to observable proxy and validating
datastore wrapper
- Fixed test files to pass schema hash parameter to SnapshotReader
- Fixed linter issues (perfsprint, testifylint)
All datastore tests pass (postgres, mysql, crdb).1 parent 6eabefe commit 918008e
File tree
20 files changed
+194
-833
lines changed- internal/datastore
- crdb
- dsfortesting
- memdb
- mysql
- postgres
- proxy
- indexcheck
- spanner
- pkg
- datastore
- test
- query
- benchmarks
20 files changed
+194
-833
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
551 | 543 | | |
552 | 544 | | |
553 | 545 | | |
554 | 546 | | |
555 | 547 | | |
556 | 548 | | |
557 | 549 | | |
558 | | - | |
559 | | - | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
560 | 563 | | |
561 | 564 | | |
562 | 565 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
| 73 | + | |
| 74 | + | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
424 | | - | |
425 | | - | |
426 | | - | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
427 | 428 | | |
428 | 429 | | |
429 | 430 | | |
430 | 431 | | |
431 | 432 | | |
432 | 433 | | |
433 | 434 | | |
434 | | - | |
435 | | - | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
436 | 456 | | |
437 | 457 | | |
438 | 458 | | |
| |||
This file was deleted.
0 commit comments