storeRevision puts a reivision number for a path to the sync backend.
(path string, revision int64)
| 316 | |
| 317 | // storeRevision puts a reivision number for a path to the sync backend. |
| 318 | func (watcher *SyncWatcher) storeRevision(path string, revision int64) error { |
| 319 | err := watcher.sync.Update(SyncWatchRevisionPrefix+path, strconv.FormatInt(revision, 10)) |
| 320 | if err != nil { |
| 321 | return fmt.Errorf("Failed to update revision number for watch path `%s` in sync storage", path) |
| 322 | } |
| 323 | return nil |
| 324 | } |
| 325 | |
| 326 | func (watcher *SyncWatcher) measureSyncTime(timeStarted time.Time, action string) { |
| 327 | metrics.UpdateTimer(timeStarted, "sync.%s", action) |
no test coverage detected