Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3570458
D13273.id44060.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
663 B
Referenced Files
None
Subscribers
None
D13273.id44060.diff
View Options
diff --git a/keyserver/src/keyserver.js b/keyserver/src/keyserver.js
--- a/keyserver/src/keyserver.js
+++ b/keyserver/src/keyserver.js
@@ -238,12 +238,12 @@
server.listen(parseInt(process.env.PORT, 10) || 3000, listenAddress);
if (isSecondaryNode) {
- let dbVersion;
- do {
+ let dbVersion = await fetchDBVersion();
+ while (dbVersion < latestWrapInTransactionAndBlockRequestsVersion) {
await sleep(5000);
dbVersion = await fetchDBVersion();
- } while (dbVersion < latestWrapInTransactionAndBlockRequestsVersion);
+ }
}
// Note - the order of router declarations matters. On prod we have
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 29, 5:28 AM (3 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2730803
Default Alt Text
D13273.id44060.diff (663 B)
Attached To
Mode
D13273: [keyserver] convert secondary migration block from do while to regular while loop
Attached
Detach File
Event Timeline
Log In to Comment