how does replicator keep files the newest one

Asked by ted

it seems that replicator server only copy files from local to remote replicas. And the principle is compare the local suffix hash to remote one. If the suffix hash is different, then it will rsync the files to the remote server.
My question is how can replicator server make sure that local file is the right one instead of the remote one?
how does suffix hash works?

Thank you very much for asking my questions.

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Solved by:
Chuck Thier
Solved:
Last query:
Last reply:
Revision history for this message
Best Chuck Thier (cthier) said :
#1

Each file stored on the system has the timestamp in the filename. If replication were to copy an older version of the file, the timestamp would be older, so it will never get served, and would eventually get cleaned up.

Revision history for this message
ted (lizhe-ted) said :
#2

Thanks Chuck Thier, that solved my question.