Commit ed5deb7
committed
fix: Lock file handling.
Locking:
- Added a boolean flag to metadata items which indicates whether they are locally created lock files or not. This is required for correct handling in some places.
- Changed database schema version.
- Lock files are now not excluded from synchronization but pretended to be synchronized.
- On following synchronizations, they are excluded from local deletion due to not being found on the server.
- Also, they are ignored in the materialized item enumeration to avoid unnecessary server requests.
Logging:
- Removed subsystem property in file provider domain log messages because it is always the same anyway.
- Improved date formatting of file provider domain log messages.
- Messages are written to the unified logging system again in debug configuration builds.
- Messages with debug level are not written to log files unless it is a debug configuration build.
- Refined encoding of supported log detail types.
Key changes of this commit:
- FilesDatabaseManager.swift:661
- RemoteChangeObserver.swift:474
- Item+Delete.swift:29
- Item+LockFile.swift:137
Signed-off-by: Iva Horn <iva.horn@icloud.com>1 parent 0864b0d commit ed5deb7
19 files changed
Lines changed: 246 additions & 280 deletions
File tree
- Sources/NextcloudFileProviderKit
- Database
- Enumeration
- Item
- Log
- Metadata
- Utilities
- Tests/NextcloudFileProviderKitTests
Lines changed: 32 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
| 561 | + | |
561 | 562 | | |
562 | 563 | | |
563 | 564 | | |
| |||
578 | 579 | | |
579 | 580 | | |
580 | 581 | | |
| 582 | + | |
581 | 583 | | |
582 | 584 | | |
583 | 585 | | |
| |||
602 | 604 | | |
603 | 605 | | |
604 | 606 | | |
605 | | - | |
606 | | - | |
607 | | - | |
| 607 | + | |
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
612 | | - | |
613 | 612 | | |
| 613 | + | |
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
620 | 620 | | |
621 | | - | |
| 621 | + | |
622 | 622 | | |
623 | 623 | | |
624 | 624 | | |
625 | 625 | | |
626 | | - | |
627 | | - | |
628 | 626 | | |
629 | 627 | | |
630 | 628 | | |
631 | 629 | | |
632 | 630 | | |
633 | 631 | | |
| 632 | + | |
634 | 633 | | |
635 | 634 | | |
| 635 | + | |
636 | 636 | | |
637 | 637 | | |
| 638 | + | |
638 | 639 | | |
639 | | - | |
640 | | - | |
641 | 640 | | |
642 | 641 | | |
643 | 642 | | |
644 | 643 | | |
| 644 | + | |
645 | 645 | | |
646 | | - | |
| 646 | + | |
647 | 647 | | |
648 | | - | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
649 | 653 | | |
650 | 654 | | |
651 | 655 | | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | | - | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
659 | 664 | | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
660 | 673 | | |
661 | 674 | | |
662 | 675 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | 123 | | |
125 | 124 | | |
126 | 125 | | |
| |||
0 commit comments