(tx *database.DB)
| 71 | } |
| 72 | |
| 73 | func getLastMaxUSN(tx *database.DB) (int, error) { |
| 74 | var ret int |
| 75 | |
| 76 | if err := database.GetSystem(tx, consts.SystemLastMaxUSN, &ret); err != nil { |
| 77 | return ret, errors.Wrap(err, "querying last user max_usn") |
| 78 | } |
| 79 | |
| 80 | return ret, nil |
| 81 | } |
| 82 | |
| 83 | // syncList is an aggregation of resources represented in the sync fragments |
| 84 | type syncList struct { |