summaryrefslogtreecommitdiff
path: root/apps/couch/include
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-08-18 11:51:03 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-08-18 14:24:57 -0400
commit7393d62b7b630bee50f609d0ae8125d33f7cda2b (patch)
tree754e9ab17a586319c562de488e60056feff60bb8 /apps/couch/include
parentc0cb2625f25a2b51485c164bea1d8822f449ce14 (diff)
Grab bag of Cloudant patches to couch OTP application
- Removal of couch_db and couch_ref_counter processes. Active DBs are accessible through a protected ets table owned by couch_server. - #full_doc_info{} in by_id and by_seq trees for faster compaction at the expense of more disk usage afterwards. Proposed as COUCHDB-738 but not accepted upstream. - Replication via distributed Erlang. - Better hot upgrade support (uses exported functions much more often). - Configurable btree chunk sizes allow for larger (but still bounded) reductions. - Shorter names for btree fields in #db{} and #db_header{}. - couch_view_group does not keep a reference to the #db{}. - Terms are stored compressed (again).
Diffstat (limited to 'apps/couch/include')
-rw-r--r--apps/couch/include/couch_db.hrl20
1 files changed, 11 insertions, 9 deletions
diff --git a/apps/couch/include/couch_db.hrl b/apps/couch/include/couch_db.hrl
index a35745ef..f17e6bb1 100644
--- a/apps/couch/include/couch_db.hrl
+++ b/apps/couch/include/couch_db.hrl
@@ -142,9 +142,9 @@
{disk_version = ?LATEST_DISK_VERSION,
update_seq = 0,
unused = 0,
- fulldocinfo_by_id_btree_state = nil,
- docinfo_by_seq_btree_state = nil,
- local_docs_btree_state = nil,
+ id_tree_state = nil,
+ seq_tree_state = nil,
+ local_tree_state = nil,
purge_seq = 0,
purged_docs = nil,
security_ptr = nil,
@@ -157,12 +157,12 @@
compactor_pid = nil,
instance_start_time, % number of microsecs since jan 1 1970 as a binary string
fd,
- fd_ref_counter,
+ fd_monitor,
header = #db_header{},
committed_update_seq,
- fulldocinfo_by_id_btree,
- docinfo_by_seq_btree,
- local_docs_btree,
+ id_tree,
+ seq_tree,
+ local_tree,
update_seq,
name,
filepath,
@@ -196,7 +196,9 @@
stale = false,
multi_get = false,
callback = nil,
- list = nil
+ list = nil,
+ keys = nil,
+ sorted = true
}).
-record(view_fold_helper_funs, {
@@ -221,7 +223,7 @@
-record(group, {
sig=nil,
- db=nil,
+ dbname,
fd=nil,
name,
def_lang,