couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1094068 - /couchdb/trunk/share/www/script/couch.js
Date Sat, 16 Apr 2011 22:25:20 GMT
Author: jan
Date: Sat Apr 16 22:25:20 2011
New Revision: 1094068

URL: http://svn.apache.org/viewvc?rev=1094068&view=rev
Log:
Preserve precious UUIDs, potentially avoid superfluous request.

Closes COUCHDB-1077

Modified:
    couchdb/trunk/share/www/script/couch.js

Modified: couchdb/trunk/share/www/script/couch.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/couch.js?rev=1094068&r1=1094067&r2=1094068&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/couch.js [utf-8] (original)
+++ couchdb/trunk/share/www/script/couch.js [utf-8] Sat Apr 16 22:25:20 2011
@@ -99,7 +99,7 @@ function CouchDB(name, httpHeaders) {
         newCount++;
       }
     }
-    var newUuids = CouchDB.newUuids(docs.length);
+    var newUuids = CouchDB.newUuids(newCount);
     var newCount = 0;
     for (var i=0; i<docs.length; i++) {
       if (docs[i]._id == undefined) {



Mime
View raw message