summaryrefslogtreecommitdiff
path: root/datastore-leveldb/src/server.cpp
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2013-04-27 20:20:44 +0200
committerYves Fischer <yvesf-git@xapek.org>2013-04-27 20:21:07 +0200
commitb8677cb17b8c4fdf2af1fcd0ead311b9bf2cfead (patch)
tree473ebaa82a66f86f2a7544f2cfe6567b43c4675a /datastore-leveldb/src/server.cpp
parent705af77c2fef7a27150b741cde228e2fe55a029b (diff)
downloadebus-alt-b8677cb17b8c4fdf2af1fcd0ead311b9bf2cfead.tar.gz
ebus-alt-b8677cb17b8c4fdf2af1fcd0ead311b9bf2cfead.zip
datastore: name refactorings
Diffstat (limited to 'datastore-leveldb/src/server.cpp')
-rw-r--r--datastore-leveldb/src/server.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/datastore-leveldb/src/server.cpp b/datastore-leveldb/src/server.cpp
index 1337466..8dd0ee2 100644
--- a/datastore-leveldb/src/server.cpp
+++ b/datastore-leveldb/src/server.cpp
@@ -29,7 +29,6 @@ int begin_request_handler(struct mg_connection *conn) {
return 1;
}
}
-
return 0;
}
@@ -38,14 +37,14 @@ struct sigaction old_action;
// Stop the server.
void sigint_handler(int s) {
mg_stop(ctx);
- closeDB();
+ db_close();
exit(0);
}
int main(int argc, char **argv) {
struct mg_callbacks callbacks;
const char *options[] = {
- "num_threads", "10",
+ "num_threads", "8",
"listening_ports", "8080",
"document_root", "wwwroot",
NULL};