Page MenuHomePhabricator

[keyserver] convert secondary migration block from do while to regular while loop
ClosedPublic

Authored by will on Mon, Sep 9, 12:47 PM.
Tags
None
Referenced Files
F2739571: D13273.id44003.diff
Tue, Sep 17, 10:07 PM
Unknown Object (File)
Mon, Sep 16, 1:38 PM
Unknown Object (File)
Mon, Sep 16, 12:34 PM
Unknown Object (File)
Mon, Sep 16, 10:44 AM
Unknown Object (File)
Mon, Sep 16, 3:15 AM
Unknown Object (File)
Mon, Sep 16, 3:00 AM
Unknown Object (File)
Mon, Sep 16, 1:07 AM
Unknown Object (File)
Sun, Sep 15, 6:00 PM
Subscribers

Details

Summary

The do-while ensures an unnecessary 5 second sleep time. Converting this to a while loop ensures this only happens if necessary

Test Plan

flow check

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

will requested review of this revision.Mon, Sep 9, 1:04 PM
ashoat requested changes to this revision.Mon, Sep 9, 1:38 PM

Good point here – can we avoid the sleep unless we need it? I think my feedback here was misguided... we should probably just revert to the version of the code you had before that feedback

This revision now requires changes to proceed.Mon, Sep 9, 1:38 PM
will retitled this revision from [keyserver] flip sleep and db version check to [keyserver] convert secondary migration block from do while to regular while loop.Wed, Sep 11, 12:48 PM
will edited the summary of this revision. (Show Details)

Thanks, and sorry for my confusion!

This revision is now accepted and ready to land.Wed, Sep 11, 1:07 PM