Page MenuHomePhabricator

D13273.id44060.diff
No OneTemporary

D13273.id44060.diff

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

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)

Event Timeline