couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [20/20] couch commit: updated refs/heads/windsor-merge-102 to 944c542
Date Mon, 04 Aug 2014 22:18:22 GMT
Fix use of lists:sublist/2

The lists module has pretty terrible consistency on which argument is
the list. This one happens to take the list first.


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

Branch: refs/heads/windsor-merge-102
Commit: 944c5426b700bfe1817c49925d83d644200945b9
Parents: f69d7ef
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Fri Jun 7 14:42:11 2013 -0500
Committer: Robert Newson <rnewson@apache.org>
Committed: Mon Aug 4 18:41:43 2014 +0100

----------------------------------------------------------------------
 src/couch_proc_manager.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/944c5426/src/couch_proc_manager.erl
----------------------------------------------------------------------
diff --git a/src/couch_proc_manager.erl b/src/couch_proc_manager.erl
index 3cbb744..fbe0104 100644
--- a/src/couch_proc_manager.erl
+++ b/src/couch_proc_manager.erl
@@ -327,7 +327,7 @@ new_proc_int(From, Lang) when is_list(Lang) ->
     end.
 
 export_proc(#proc_int{} = ProcInt) ->
-    [_ | Data] = lists:sublist(record_info(size, proc), tuple_to_list(ProcInt)),
+    [_ | Data] = lists:sublist(tuple_to_list(ProcInt), record_info(size, proc)),
     list_to_tuple([proc | Data]).
 
 import_proc(#proc{} = P) ->


Mime
View raw message