couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bitdid...@apache.org
Subject git commit: Fix whitespace, remove unused variable
Date Fri, 18 Nov 2011 11:36:40 GMT
Updated Branches:
  refs/heads/COUCHDB-1342 8d698f571 -> 62dde7e9f


Fix whitespace, remove unused variable


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/62dde7e9
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/62dde7e9
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/62dde7e9

Branch: refs/heads/COUCHDB-1342
Commit: 62dde7e9ffa2f47cfee37dd18c6e266aec694639
Parents: 8d698f5
Author: Bob Dionne <bitdiddle@apache.org>
Authored: Fri Nov 18 06:35:22 2011 -0500
Committer: Bob Dionne <bitdiddle@apache.org>
Committed: Fri Nov 18 06:35:22 2011 -0500

----------------------------------------------------------------------
 src/couchdb/couch_db.erl |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/62dde7e9/src/couchdb/couch_db.erl
----------------------------------------------------------------------
diff --git a/src/couchdb/couch_db.erl b/src/couchdb/couch_db.erl
index ca6424d..9d1ca0f 100644
--- a/src/couchdb/couch_db.erl
+++ b/src/couchdb/couch_db.erl
@@ -151,7 +151,7 @@ apply_open_options({ok, Doc},Options) ->
     apply_open_options2(Doc,Options);
 apply_open_options(Else,_Options) ->
     Else.
-    
+
 apply_open_options2(Doc,[]) ->
     {ok, Doc};
 apply_open_options2(#doc{atts=Atts,revs=Revs}=Doc,
@@ -301,7 +301,7 @@ sum_tree_sizes(Acc, [T | Rest]) ->
         sum_tree_sizes(Acc + Sz, Rest)
     end.
 
-get_design_docs(#db{fulldocinfo_by_id_btree = IdBtree} = Db) ->
+get_design_docs(#db{fulldocinfo_by_id_btree = IdBtree}) ->
     FoldFun = skip_deleted(fun
         (#full_doc_info{deleted = true}, _Reds, Acc) ->
             {ok, Acc};
@@ -612,11 +612,11 @@ prep_and_validate_replicated_updates(Db, [Bucket|RestBuckets], [OldInfo|RestOldI
                 {ok, {Start, Path}} ->
                     % our unflushed doc is a leaf node. Go back on the path
                     % to find the previous rev that's on disk.
-                    
+
                     LoadPrevRevFun = fun() ->
                                 make_first_doc_on_disk(Db,Id,Start-1, tl(Path))
                             end,
-                    
+
                     case couch_doc:has_stubs(Doc) of
                     true ->
                         DiskDoc = LoadPrevRevFun(),
@@ -626,7 +626,7 @@ prep_and_validate_replicated_updates(Db, [Bucket|RestBuckets], [OldInfo|RestOldI
                         Doc2 = Doc,
                         GetDiskDocFun = LoadPrevRevFun
                     end,
-                    
+
                     case validate_doc_update(Db, Doc2, GetDiskDocFun) of
                     ok ->
                         {[Doc2 | AccValidated], AccErrors2};
@@ -721,7 +721,7 @@ update_docs(Db, Docs, Options, interactive_edit) ->
                 {[Doc | DocsAcc], NonRepDocsAcc}
             end
         end, {[], []}, Docs),
-        
+
     DocBuckets = group_alike_docs(Docs2),
 
     case (Db#db.validate_doc_funs /= []) orelse
@@ -761,9 +761,9 @@ update_docs(Db, Docs, Options, interactive_edit) ->
                         check_dup_atts(Doc)), Db#db.fd)
                 || Doc <- B] || B <- DocBuckets2],
         {DocBuckets4, IdRevs} = new_revs(DocBuckets3, [], []),
-        
+
         {ok, CommitResults} = write_and_commit(Db, DocBuckets4, NonRepDocs, Options2),
-        
+
         ResultsDict = dict:from_list(IdRevs ++ CommitResults ++ PreCommitFailures),
         {ok, lists:map(
             fun(#doc{id=Id,revs={Pos, RevIds}}) ->
@@ -874,7 +874,7 @@ set_new_att_revpos(#doc{revs={RevPos,_Revs},atts=Atts}=Doc) ->
         (Att) ->
             Att#att{revpos=RevPos+1}
         end, Atts)}.
-        
+
 
 doc_flush_atts(Doc, Fd) ->
     Doc#doc{atts=[flush_att(Fd, Att) || Att <- Doc#doc.atts]}.
@@ -1034,7 +1034,7 @@ enum_docs_reduce_to_count(Reds) ->
 
 changes_since(Db, StartSeq, Fun, Acc) ->
     changes_since(Db, StartSeq, Fun, [], Acc).
-    
+
 changes_since(Db, StartSeq, Fun, Options, Acc) ->
     Wrapper = fun(DocInfo, _Offset, Acc2) -> Fun(DocInfo, Acc2) end,
     {ok, _LastReduction, AccOut} = couch_btree:fold(Db#db.docinfo_by_seq_btree,
@@ -1109,7 +1109,7 @@ handle_cast(Msg, Db) ->
 
 code_change(_OldVsn, State, _Extra) ->
     {ok, State}.
-    
+
 handle_info({'EXIT', _Pid, normal}, Db) ->
     {noreply, Db};
 handle_info({'EXIT', _Pid, Reason}, Server) ->


Mime
View raw message