Commit e6192208 authored by Shane Snyder's avatar Shane Snyder

bake server takes a bake pool, not a pmem pool

parent bdb779f3
...@@ -16,15 +16,15 @@ ...@@ -16,15 +16,15 @@
struct options struct options
{ {
char *listen_addr_str; char *listen_addr_str;
char *pmem_pool; char *bake_pool;
char *host_file; char *host_file;
}; };
static void usage(int argc, char **argv) static void usage(int argc, char **argv)
{ {
fprintf(stderr, "Usage: bake-server-daemon [OPTIONS] <listen_addr> <pmem_pool>\n"); fprintf(stderr, "Usage: bake-server-daemon [OPTIONS] <listen_addr> <bake_pool>\n");
fprintf(stderr, " listen_addr is the Mercury address to listen on\n"); fprintf(stderr, " listen_addr is the Mercury address to listen on\n");
fprintf(stderr, " pmem_pool is the path to the pmemobj pool\n"); fprintf(stderr, " bake_pool is the path to the BAKE pool\n");
fprintf(stderr, " [-f filename] to write the server address to a file\n"); fprintf(stderr, " [-f filename] to write the server address to a file\n");
fprintf(stderr, "Example: ./bake-server-daemon tcp://localhost:1234 /dev/shm/foo.dat\n"); fprintf(stderr, "Example: ./bake-server-daemon tcp://localhost:1234 /dev/shm/foo.dat\n");
return; return;
...@@ -57,7 +57,7 @@ static void parse_args(int argc, char **argv, struct options *opts) ...@@ -57,7 +57,7 @@ static void parse_args(int argc, char **argv, struct options *opts)
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
opts->listen_addr_str = argv[optind++]; opts->listen_addr_str = argv[optind++];
opts->pmem_pool = argv[optind++]; opts->bake_pool = argv[optind++];
return; return;
} }
...@@ -119,7 +119,7 @@ int main(int argc, char **argv) ...@@ -119,7 +119,7 @@ int main(int argc, char **argv)
} }
/* initialize the BAKE server */ /* initialize the BAKE server */
ret = bake_server_init(mid, opts.pmem_pool); ret = bake_server_init(mid, opts.bake_pool);
if(ret != 0) if(ret != 0)
{ {
fprintf(stderr, "Error: bake_server_init()\n"); fprintf(stderr, "Error: bake_server_init()\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment