• Home
  • Raw
  • Download

Lines Matching refs:finish

118     goto finish;  in _on_get()
122 RCC(rc, finish, jbl_as_json(jbl, jbl_count_json_printer, &nbytes, JBL_PRINT_PRETTY)); in _on_get()
123 RCC(rc, finish, iwn_http_response_header_i64_set(ctx->req->http, "content-length", nbytes)); in _on_get()
125 RCA(xstr = iwxstr_new2(jbl->bn.size * 2), finish); in _on_get()
126 RCC(rc, finish, jbl_as_json(jbl, jbl_xstr_json_printer, xstr, JBL_PRINT_PRETTY)); in _on_get()
133 finish: in _on_get()
156 goto finish; in _on_post()
158 RCC(rc, finish, ejdb_put_new(ctx->jbr->db, ctx->cname, jbl, &id)); in _on_post()
161 finish: in _on_post()
182 goto finish; in _on_put()
184 RCC(rc, finish, ejdb_put(ctx->jbr->db, ctx->cname, jbl, ctx->id)); in _on_put()
187 finish: in _on_put()
258 RCC(rc, finish, ejdb_get_meta(ctx->jbr->db, &jbl)); in _on_options()
259 RCA(xstr = iwxstr_new2(jbl->bn.size * 2), finish); in _on_options()
260 RCC(rc, finish, jbl_as_json(jbl, jbl_xstr_json_printer, xstr, JBL_PRINT_PRETTY)); in _on_options()
263 …RCC(rc, finish, iwn_http_response_header_add(ctx->req->http, "Allow", "GET, HEAD, POST, OPTIONS", … in _on_options()
265 RCC(rc, finish, iwn_http_response_header_add(ctx->req->http, "Allow", in _on_options()
270 …RCC(rc, finish, iwn_http_response_header_add(ctx->req->http, "Access-Control-Allow-Origin", "*", 1… in _on_options()
271 RCC(rc, finish, iwn_http_response_header_add(ctx->req->http, "Access-Control-Allow-Headers", in _on_options()
275 RCC(rc, finish, iwn_http_response_header_add(ctx->req->http, "Access-Control-Allow-Methods", in _on_options()
278 RCC(rc, finish, iwn_http_response_header_add(ctx->req->http, "Access-Control-Allow-Methods", in _on_options()
285 finish: in _on_options()
332 RCA(xstr, finish); in _query_visitor()
335 RCC(rc, finish, iwxstr_cat(xstr, iwxstr_ptr(ux->log), iwxstr_size(ux->log))); in _query_visitor()
336 RCC(rc, finish, iwxstr_cat(xstr, "--------------------", 20)); in _query_visitor()
340 RCC(rc, finish, iwxstr_printf(xstr, "\r\n%" PRId64 "\t", doc->id)); in _query_visitor()
342 RCC(rc, finish, jbn_as_json(doc->node, jbl_xstr_json_printer, xstr, 0)); in _query_visitor()
344 RCC(rc, finish, jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0)); in _query_visitor()
356 RCC(rc, finish, iwn_http_response_chunk_write( in _query_visitor()
363 finish: in _query_visitor()
379 RCC(rc, finish, in _on_query()
393 RCA(ctx->ux.log = iwxstr_new(), finish); in _on_query()
403 RCGO(rc, finish); in _on_query()
424 finish: in _on_query()
622 goto finish; in _ws_info()
624 RCC(rc, finish, ejdb_get_meta(ctx->jbr->db, &jbl)); in _ws_info()
625 RCA(xstr = iwxstr_new2(jbl->bn.size * 2), finish); in _ws_info()
626 RCC(rc, finish, iwxstr_printf(xstr, "%s\t", mctx->key)); in _ws_info()
627 RCC(rc, finish, jbl_as_json(jbl, jbl_xstr_json_printer, xstr, JBL_PRINT_PRETTY)); in _ws_info()
630 finish: in _ws_info()
645 goto finish; in _ws_coll_remove()
647 RCC(rc, finish, ejdb_remove_collection(ctx->jbr->db, mctx->cname)); in _ws_coll_remove()
650 finish: in _ws_coll_remove()
665 goto finish; in _ws_document_add()
667 RCC(rc, finish, jbl_from_json(&jbl, json)); in _ws_document_add()
668 RCC(rc, finish, ejdb_put_new(ctx->jbr->db, mctx->cname, jbl, &id)); in _ws_document_add()
671 finish: in _ws_document_add()
686 RCC(rc, finish, ejdb_get(ctx->jbr->db, mctx->cname, id, &jbl)); in _ws_document_get()
687 RCA(xstr = iwxstr_new2(jbl->bn.size * 2), finish); in _ws_document_get()
688 RCC(rc, finish, iwxstr_printf(xstr, "%s\t%" PRId64 "\t", mctx->key, id)); in _ws_document_get()
689 RCC(rc, finish, jbl_as_json(jbl, jbl_xstr_json_printer, xstr, JBL_PRINT_PRETTY)); in _ws_document_get()
692 finish: in _ws_document_get()
708 goto finish; in _ws_document_set()
710 RCC(rc, finish, jbl_from_json(&jbl, json)); in _ws_document_set()
711 RCC(rc, finish, ejdb_put(ctx->jbr->db, mctx->cname, jbl, id)); in _ws_document_set()
714 finish: in _ws_document_set()
728 goto finish; in _ws_document_del()
730 RCC(rc, finish, ejdb_del(ctx->jbr->db, mctx->cname, id)); in _ws_document_del()
733 finish: in _ws_document_del()
746 goto finish; in _ws_document_patch()
748 RCC(rc, finish, ejdb_patch(ctx->jbr->db, mctx->cname, json, id)); in _ws_document_patch()
751 finish: in _ws_document_patch()
764 goto finish; in _ws_index_set()
766 RCC(rc, finish, ejdb_ensure_index(ctx->jbr->db, mctx->cname, path, mode)); in _ws_index_set()
769 finish: in _ws_index_set()
782 goto finish; in _ws_index_del()
784 RCC(rc, finish, ejdb_remove_index(ctx->jbr->db, mctx->cname, path, mode)); in _ws_index_del()
787 finish: in _ws_index_del()
798 RCA(mctx->wbuf = iwxstr_new2(512), finish); in _ws_query_visitor()
807 RCC(rc, finish, iwxstr_printf(mctx->wbuf, "%s\t%" PRId64 "\t", mctx->key, doc->id)); in _ws_query_visitor()
809 RCC(rc, finish, jbn_as_json(doc->node, jbl_xstr_json_printer, mctx->wbuf, 0)); in _ws_query_visitor()
811 RCC(rc, finish, jbl_as_json(doc->raw, jbl_xstr_json_printer, mctx->wbuf, 0)); in _ws_query_visitor()
817 finish: in _ws_query_visitor()
832 RCC(rc, finish, in _ws_query()
836 goto finish; in _ws_query()
839 RCA(ux.log = iwxstr_new(), finish); in _ws_query()
841 RCC(rc, finish, ejdb_exec(&ux)); in _ws_query()
848 finish: in _ws_query()
1050 RCC(rc, finish, iwn_wf_create(&(struct iwn_wf_route) { in _configure()
1054 RCC(rc, finish, iwn_wf_route(iwn_ws_server_route_attach(&(struct iwn_wf_route) { in _configure()
1066 RCC(rc, finish, iwn_wf_route(&(struct iwn_wf_route) { in _configure()
1074 finish: in _configure()
1114 RCC(rc, finish, _configure(jbr)); in jbr_start()
1115 RCC(rc, finish, iwn_poller_create(cores, cores / 2, &jbr->poller)); in jbr_start()
1116 RCC(rc, finish, _start(jbr)); in jbr_start()
1127 finish: in jbr_start()