Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print startup tips #372

Merged
merged 3 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/obclient/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,20 @@ int init_tcp_sock(const char *server_host, int server_port)
return sockfd;
}

const char *startup_tips = R"(
Welcome to the OceanBase database implementation course.

Copyright (c) 2021 OceanBase and/or its affiliates.

Learn more about OceanBase at https://github.com/oceanbase/oceanbase
Learn more about MiniOB at https://github.com/oceanbase/miniob

)";

int main(int argc, char *argv[])
{
printf("%s", startup_tips);

const char *unix_socket_path = nullptr;
const char *server_host = "127.0.0.1";
int server_port = PORT_DEFAULT;
Expand Down
12 changes: 12 additions & 0 deletions src/observer/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,22 @@ void quit_signal_handle(int signum)
pthread_create(&tid, nullptr, quit_thread_func, (void *)(intptr_t)signum);
}

const char *startup_tips = R"(
Welcome to the OceanBase database implementation course.

Copyright (c) 2021 OceanBase and/or its affiliates.

Learn more about OceanBase at https://github.com/oceanbase/oceanbase
Learn more about MiniOB at https://github.com/oceanbase/miniob

)";

int main(int argc, char **argv)
{
int rc = STATUS_SUCCESS;

cout << startup_tips;

set_signal_handler(quit_signal_handle);

parse_parameter(argc, argv);
Expand Down
Loading