couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1095639 - /couchdb/trunk/src/couchdb/couch_db.erl
Date Thu, 21 Apr 2011 09:45:16 GMT
Author: fdmanana
Date: Thu Apr 21 09:45:16 2011
New Revision: 1095639

URL: http://svn.apache.org/viewvc?rev=1095639&view=rev
Log:
Add missing clause to deal with old databases when computing the data size

Closes COUCHDB-1134.


Modified:
    couchdb/trunk/src/couchdb/couch_db.erl

Modified: couchdb/trunk/src/couchdb/couch_db.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_db.erl?rev=1095639&r1=1095638&r2=1095639&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_db.erl (original)
+++ couchdb/trunk/src/couchdb/couch_db.erl Thu Apr 21 09:45:16 2011
@@ -281,6 +281,8 @@ db_data_size(_, nil, _) ->
 db_data_size(_, _, {_Count, _DelCount}) ->
     % pre 1.2 format, upgraded on compaction
     null;
+db_data_size(_, _, {_Count, _DelCount, nil}) ->
+    null;
 db_data_size(SeqBtreeSize, IdBtreeSize, {_Count, _DelCount, DocAndAttsSize}) ->
     SeqBtreeSize + IdBtreeSize + DocAndAttsSize.
 



Mime
View raw message