Pete Zaitcev (zaitcev ) wrote,

+1, Amusing

Saw an odd code in a Swift's daemon today:

    for path, device, partition in all_locs:
        self.account_audit(path)
        if time.time() - reported >= 3600:  # once an hour
            self.logger.info(_('Since %(time)s: Account audits: ' ...)
            self.account_audit(path)
            dump_recon_cache({'account_audits_since': reported, ...})

It was so obvious that I pinged the code author. Surely he meant something profound by it. Auditing has lots of side effects and may take a while, so... But actually, no.

Now I'm wondering how many reviewers saw this and thought that there might be a deeper meaning in there.

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 1 comment