couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Lehnardt <...@apache.org>
Subject waitForRestart() double request()
Date Wed, 29 Jun 2011 13:45:26 GMT
Heya,

I may be missing something, but our weitForRestart() function seems to have an accidental
line duplication:

function waitForRestart() {
  var waiting = true;
  while (waiting) {
    try {
      CouchDB.request("GET", "/");
      CouchDB.request("GET", "/");
      waiting = false;
    } catch(e) {
      // the request will fail until restart completes
    }
  }
};

If this is intentional, I'd like to know what the intent here is :)

Cheers
Jan
-- 


Mime
View raw message