You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/08/06 13:55:25 UTC
[48/48] couch commit: updated refs/heads/windsor-merge-300 to 2c2f53e
Fix indentation in couch_db.hrl
This commit contains only cosmetic changes.
BugzID: 26211
Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/2c2f53ec
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/2c2f53ec
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/2c2f53ec
Branch: refs/heads/windsor-merge-300
Commit: 2c2f53ec3eb173829e493af9823cf6d09c8fbdd2
Parents: 371ae11
Author: Benjamin Bastian <be...@gmail.com>
Authored: Mon Dec 16 14:00:07 2013 -0800
Committer: Robert Newson <rn...@apache.org>
Committed: Wed Aug 6 12:52:46 2014 +0100
----------------------------------------------------------------------
include/couch_db.hrl | 49 +++++++++++++++++++++--------------------------
1 file changed, 22 insertions(+), 27 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/2c2f53ec/include/couch_db.hrl
----------------------------------------------------------------------
diff --git a/include/couch_db.hrl b/include/couch_db.hrl
index d77a2aa..c57a583 100644
--- a/include/couch_db.hrl
+++ b/include/couch_db.hrl
@@ -47,31 +47,29 @@
-type path() :: {Start::pos_integer(), branch()}.
-type tree() :: [branch()]. % sorted by key
--record(rev_info,
- {
+-record(rev_info, {
rev,
seq = 0,
deleted = false,
body_sp = nil % stream pointer
- }).
+}).
--record(doc_info,
- {
+-record(doc_info, {
id = <<"">>,
high_seq = 0,
revs = [] % rev_info
- }).
+}).
--record(full_doc_info,
- {id = <<"">>,
+-record(full_doc_info, {
+ id = <<"">>,
update_seq = 0,
deleted = false,
rev_tree = [],
leafs_size = 0
- }).
+}).
--record(httpd,
- {mochi_req,
+-record(httpd, {
+ mochi_req,
peer,
method,
requested_path_parts,
@@ -83,11 +81,10 @@
auth,
default_fun,
url_handlers
- }).
+}).
--record(doc,
- {
+-record(doc, {
id = <<"">>,
revs = {0, []},
@@ -101,11 +98,10 @@
% key/value tuple of meta information, provided when using special options:
% couch_db:open_doc(Db, Id, Options).
meta = []
- }).
+}).
--record(att,
- {
+-record(att, {
name,
type,
att_len,
@@ -119,18 +115,17 @@
% identity, gzip
% additional values to support in the future:
% deflate, compress
- }).
+}).
--record(user_ctx,
- {
+-record(user_ctx, {
name=null,
roles=[],
handler
- }).
+}).
--record(db,
- {main_pid = nil,
+-record(db, {
+ main_pid = nil,
compactor_pid = nil,
instance_start_time, % number of microsecs since jan 1 1970 as a binary string
fd,
@@ -154,7 +149,7 @@
compression,
before_doc_update = nil, % nil | fun(Doc, Db) -> NewDoc
after_doc_read = nil % nil | fun(Doc, Db) -> NewDoc
- }).
+}).
-record(view_fold_helper_funs, {
reduce_count,
@@ -177,12 +172,12 @@
json = nil
}).
--record(index_header,
- {seq=0,
+-record(index_header, {
+ seq=0,
purge_seq=0,
id_btree_state=nil,
view_states=nil
- }).
+}).
% small value used in revision trees to indicate the revision isn't stored
-define(REV_MISSING, []).