/[Apache-SVN]
ViewVC logotype

Revision 1176704


Jump to revision: Previous Next
Author: davisp
Date: Wed Sep 28 03:44:25 2011 UTC (12 years, 6 months ago)
Changed paths: 4
Log Message:
Rest of the fix for COUCHDB-1265

As a follow up to COUCHDB-1265 I was missing the fact that after the
insertion of a new update_seq into an internal node it is quite possible
that a compaction runs before the doc is updated again. This is
important because compaction removes information of the largest update
seq from the tree itself.

The fix is simple to include the update_seq from the #full_doc_info{}
record when calculating #doc_info.high_seq. The way to think of this
is that it's the maximum value from all known values for the update
sequence which can be defined as all values known in the tree or in the
full_doc_info record.

Backport of r1176701 from trunk



Changed paths

Path Details
Directorycouchdb/branches/1.1.x/ modified , props changed
Directorycouchdb/branches/1.1.x/etc/default/couchdb modified , props changed
Directorycouchdb/branches/1.1.x/share/www/script/test/recreate_doc.js modified , text changed
Directorycouchdb/branches/1.1.x/src/couchdb/couch_doc.erl modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26