package filer // SyncCursor is what a filer.sync keeps on its source filer under // SyncCursorDir. TsNs holds back the metadata log purge there; the other // fields describe the sync for display. The checkpoint stored on the target // filer stays the authoritative sync position. type SyncCursor struct { TsNs int64 `json:"ts_ns"` SavedNs int64 `json:"saved_ns"` // Checkpointed is false while a fresh sync has no target checkpoint yet // and TsNs is held just before the first event it received. Checkpointed bool `json:"checkpointed"` ProcessedTsNs int64 `json:"processed_ts_ns,omitempty"` OldestFailedTsNs int64 `json:"oldest_failed_ts_ns,omitempty"` SourceFiler string `json:"source_filer"` SourcePath string `json:"source_path"` ExcludePaths []string `json:"exclude_paths,omitempty"` TargetFiler string `json:"target_filer"` TargetPath string `json:"target_path"` TargetSignature int32 `json:"target_signature"` Host string `json:"host,omitempty"` Version string `json:"version,omitempty"` SyncStartedNs int64 `json:"sync_started_ns"` }