couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jch...@apache.org
Subject svn commit: r739170 - in /couchdb/trunk: share/www/script/couch_tests.js src/couchdb/couch_btree.erl
Date Fri, 30 Jan 2009 04:57:45 GMT
Author: jchris
Date: Fri Jan 30 04:57:44 2009
New Revision: 739170

URL: http://svn.apache.org/viewvc?rev=739170&view=rev
Log:
all_docs view with descending=true works properly now. fix COUCHDB-109

Modified:
    couchdb/trunk/share/www/script/couch_tests.js
    couchdb/trunk/src/couchdb/couch_btree.erl

Modified: couchdb/trunk/share/www/script/couch_tests.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/couch_tests.js?rev=739170&r1=739169&r2=739170&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/couch_tests.js [utf-8] (original)
+++ couchdb/trunk/share/www/script/couch_tests.js [utf-8] Fri Jan 30 04:57:44 2009
@@ -577,9 +577,8 @@
     }
 
     // Check _all_docs with descending=true again (now that there are many docs)
-    // this fails, see COUCHDB-109
-    // var desc = db.allDocs({descending:true});
-    // T(desc.total_rows == desc.rows.length);
+    var desc = db.allDocs({descending:true});
+    T(desc.total_rows == desc.rows.length);
   },
 
   reduce: function(debug) {

Modified: couchdb/trunk/src/couchdb/couch_btree.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_btree.erl?rev=739170&r1=739169&r2=739170&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_btree.erl (original)
+++ couchdb/trunk/src/couchdb/couch_btree.erl Fri Jan 30 04:57:44 2009
@@ -558,6 +558,8 @@
 
 stream_node(Bt, Reds, PointerInfo, nil, Dir, Fun, Acc) ->
     stream_node(Bt, Reds, PointerInfo, Dir, Fun, Acc);
+stream_node(Bt, Reds, PointerInfo, {}, rev, Fun, Acc) ->
+    stream_node(Bt, Reds, PointerInfo, rev, Fun, Acc);
 stream_node(_Bt, _Reds, nil, _StartKey, _Dir, _Fun, Acc) ->
     {ok, Acc};
 stream_node(Bt, Reds, {Pointer, _Reds}, StartKey, Dir, Fun, Acc) ->



Mime
View raw message