()
| 744 | } |
| 745 | |
| 746 | func (tx *Tx) getChangeCountInEntriesChanges() (int64, error) { |
| 747 | var res int64 |
| 748 | for _, entriesInDS := range tx.pendingWrites.entriesInBTree { |
| 749 | for _, entry := range entriesInDS { |
| 750 | curRecordCnt, err := tx.getEntryNewAddRecordCount(entry) |
| 751 | if err != nil { |
| 752 | return res, nil |
| 753 | } |
| 754 | res += curRecordCnt |
| 755 | } |
| 756 | } |
| 757 | for _, entriesInDS := range tx.pendingWrites.entries { |
| 758 | for _, entries := range entriesInDS { |
| 759 | for _, entry := range entries { |
| 760 | curRecordCnt, err := tx.getEntryNewAddRecordCount(entry) |
| 761 | if err != nil { |
| 762 | return res, err |
| 763 | } |
| 764 | res += curRecordCnt |
| 765 | } |
| 766 | } |
| 767 | } |
| 768 | return res, nil |
| 769 | } |
| 770 | |
| 771 | func (tx *Tx) getChangeCountInBucketChanges() int64 { |
| 772 | var res int64 |
no test coverage detected