code: func (m *metadataTracker) resetAll(dev protocol.DeviceID) {
  	m.mut.Lock()
  	m.dirty = true
  	for i, c := range m.counts.Counts {
  		if bytes.Equal(c.DeviceID, dev[:]) {
  			m.counts.Counts[i] = Counts{
  				DeviceID:   c.DeviceID,
  				LocalFlags: c.LocalFlags,
  			}
  		}
  	}
  	m.mut.Unlock()
  }
docs: // resetAll resets all metadata for the given device