| a | b | |
|---|
| 0 | + | Erlang R14B01 (erts-5.8.2) [source] [smp:2:2] [rq:2] [async-threads:4] [hipe] [kernel-poll:true] |
|---|
| 0 | + | |
|---|
| 0 | + | Eshell V5.8.2 (abort with ^G) |
|---|
| 0 | + | 1> Apache CouchDB 1.2.0affcb1cc-git (LogLevel=info) is starting. |
|---|
| 0 | + | Apache CouchDB has started. Time to relax. |
|---|
| 0 | + | [info] [<0.37.0>] Apache CouchDB has started on http://127.0.0.1:5985/ |
|---|
| 0 | + | |
|---|
| 0 | + | 1> rr("src/couchdb/couch_db.hrl"). |
|---|
| 0 | + | [att,btree,changes_args,db,db_header,doc,doc_info, |
|---|
| 0 | + | extern_resp_args,full_doc_info,group,httpd,index_header, |
|---|
| 0 | + | reduce_fold_helper_funs,rev_info,user_ctx,view, |
|---|
| 0 | + | view_fold_helper_funs,view_query_args] |
|---|
| 0 | + | 2> |
|---|
| 0 | + | 2> {ok, Db} = couch_db:open_int(<<"foo">>). |
|---|
| 0 | + | ** exception error: undefined function couch_db:open_int/1 |
|---|
| 0 | + | 3> {ok, Db} = couch_db:open_int(<<"foo">>, []). |
|---|
| 0 | + | {ok,#db{main_pid = <0.172.0>,update_pid = <0.173.0>, |
|---|
| 0 | + | compactor_pid = nil, |
|---|
| 0 | + | instance_start_time = <<"1300376907753315">>,fd = <0.174.0>, |
|---|
| 0 | + | updater_fd = <0.170.0>,fd_ref_counter = <0.176.0>, |
|---|
| 0 | + | header = #db_header{disk_version = 5,update_seq = 0, |
|---|
| 0 | + | unused = 0,fulldocinfo_by_id_btree_state = nil, |
|---|
| 0 | + | docinfo_by_seq_btree_state = nil, |
|---|
| 0 | + | local_docs_btree_state = nil,purge_seq = 0, |
|---|
| 0 | + | purged_docs = nil,security_ptr = nil,revs_limit = 1000}, |
|---|
| 0 | + | committed_update_seq = 0, |
|---|
| 0 | + | fulldocinfo_by_id_btree = #btree{fd = <0.170.0>,root = nil, |
|---|
| 0 | + | extract_kv = #Fun<couch_db_updater.10.53859553>, |
|---|
| 0 | + | assemble_kv = #Fun<couch_db_updater.11.54897888>, |
|---|
| 0 | + | less = #Fun<couch_btree.5.3534514>, |
|---|
| 0 | + | reduce = #Fun<couch_db_updater.12.127270801>}, |
|---|
| 0 | + | docinfo_by_seq_btree = #btree{fd = <0.170.0>,root = nil, |
|---|
| 0 | + | extract_kv = #Fun<couch_db_updater.13.74802401>, |
|---|
| 0 | + | assemble_kv = #Fun<couch_db_updater.14.116192360>, |
|---|
| 0 | + | less = #Fun<couch_btree.5.3534514>, |
|---|
| 0 | + | reduce = #Fun<couch_db_updater.15.3285619>}, |
|---|
| 0 | + | local_docs_btree = #btree{fd = <0.170.0>,root = nil, |
|---|
| 0 | + | extract_kv = #Fun<couch_btree.0.8709291>, |
|---|
| 0 | + | assemble_kv = #Fun<couch_btree.1.100429438>, |
|---|
| 0 | + | less = #Fun<couch_btree.2.3534514>,reduce = nil}, |
|---|
| 0 | + | update_seq = 0,name = <<"foo">>, |
|---|
| 0 | + | filepath = "/home/fdmanana/git/hub/couchdb2/couchdb/tmp/lib/foo.couch", |
|---|
| 0 | + | validate_doc_funs = [],security = [],security_ptr = nil, |
|---|
| 0 | + | user_ctx = #user_ctx{name = null,roles = [], |
|---|
| 0 | + | handler = undefined}, |
|---|
| 0 | + | waiting_delayed_commit = nil,revs_limit = 1000, |
|---|
| 0 | + | fsync_options = [before_header,after_header,on_file_open], |
|---|
| 0 | + | options = []}} |
|---|
| 0 | + | 4> Doc = #doc{id = <<"foo">>, body = 1234}. |
|---|
| 0 | + | #doc{id = <<"foo">>, |
|---|
| 0 | + | revs = {0,[]}, |
|---|
| 0 | + | body = 1234,atts = [],deleted = false,meta = []} |
|---|
| 0 | + | 5> couch_db:update_doc(Db, Doc, []). |
|---|
| 0 | + | {ok,{1, |
|---|
| 0 | + | <<36,105,104,115,24,235,79,9,135,114,117,252,72,164,164, |
|---|
| 0 | + | 236>>}} |
|---|
| 0 | + | 6> |
|---|
| ... | |
|---|