Posted By

dvdrtrgn on 09/09/08


Tagged

object sync pseudocode


Versions (?)

pseudocode for sync object


 / Published in: Other
 

  1. pseudocode for sync object
  2.  
  3. take ref to container obj_l
  4. take ref to container obj_r
  5.  
  6. given a check for
  7.  
  8.  
  9. establish a pair
  10. give the pair a serial number obj_id
  11. this way we can at least tell if they *should* be the same
  12. associate a date (and maybe a checksum) with that
  13.  
  14.  
  15.  
  16. watch the filesystem of have the file system journal for changes to this
  17. set a marker for quick-sync
  18.  
  19.  
  20. when looking at remote items quick-sync will compare date listing/hashes
  21. if needed the checksum (hash function?) can be applied
  22. Also, a listing of obj_id(s) from meta data can determine if something is broken or altered
  23.  
  24.  
  25. routine to restore broken/altered pairs
  26. which is more recent?
  27. which is larger?

Report this snippet  

You need to login to post a comment.