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/05 18:47:17 UTC
[17/34] couch commit: updated refs/heads/windsor-merge-209 to f2368da
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/ea2b1ee0
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/ea2b1ee0
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/ea2b1ee0
Branch: refs/heads/windsor-merge-209
Commit: ea2b1ee09242974991360d313705387ed727ec85
Parents: 08a25ad
Author: Paul J. Davis <pa...@gmail.com>
Authored: Fri Jun 7 14:42:11 2013 -0500
Committer: Robert Newson <rn...@apache.org>
Committed: Tue Aug 5 12:03:15 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/ea2b1ee0/src/couch_proc_manager.erl
----------------------------------------------------------------------
diff --git a/src/couch_proc_manager.erl b/src/couch_proc_manager.erl
index f84c06a..252de2c 100644
--- a/src/couch_proc_manager.erl
+++ b/src/couch_proc_manager.erl
@@ -425,7 +425,7 @@ remove_proc(Tab, Pid) ->
-spec export_proc(#proc_int{}) -> #proc{}.
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) ->