diff options
author | Damien F. Katz <damien@apache.org> | 2008-04-04 03:10:34 +0000 |
---|---|---|
committer | Damien F. Katz <damien@apache.org> | 2008-04-04 03:10:34 +0000 |
commit | afaa5d561826ccf7cab4fde2af9ad39d32ea4d0d (patch) | |
tree | e94b0bca1ee069f95f34c66fbcd21c2a03061ba5 /src/couchdb/mod_couch.erl | |
parent | 88627dd6d98acd1a6700994037f4da1362dbcb3e (diff) |
compaction code, not hooked up to webserver yet
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@644593 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/mod_couch.erl')
-rw-r--r-- | src/couchdb/mod_couch.erl | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/couchdb/mod_couch.erl b/src/couchdb/mod_couch.erl index 78c0853a..8373dbe9 100644 --- a/src/couchdb/mod_couch.erl +++ b/src/couchdb/mod_couch.erl @@ -500,14 +500,7 @@ handle_replication_request(#mod{entity_body=RawJson}=Mod) -> send_database_info(Mod, #uri_parts{db=DbName}=Parts) -> Db = open_db(Parts), {ok, InfoList} = couch_db:get_db_info(Db), - ok = send_header(Mod, 200, resp_json_header(Mod)), - DocCount = proplists:get_value(doc_count, InfoList), - LastUpdateSequence = proplists:get_value(last_update_seq, InfoList), - ok = send_chunk(Mod, "{\"db_name\": \"" ++ DbName ++ - "\", \"doc_count\":" ++ integer_to_list(DocCount) ++ - ", \"update_seq\":" ++ integer_to_list(LastUpdateSequence)++"}"), - ok = send_final_chunk(Mod), - {ok, 200}. + send_json(Mod, 200, {obj, [{db_name, DbName} | InfoList]}). send_doc(#mod{parsed_header=Headers}=Mod, #uri_parts{doc=DocId,querystr=QueryStr}=Parts) -> |