mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-05 02:12:48 +08:00
MS-82 Update
Former-commit-id: c8dd35401e0fd15df7f140978e37c7a0e6a363f7
This commit is contained in:
parent
b6e51b26be
commit
b749e7ec50
@ -193,11 +193,13 @@ Server::Stop() {
|
||||
if (pid_fd != -1) {
|
||||
int ret = lockf(pid_fd, F_ULOCK, 0);
|
||||
if(ret != 0){
|
||||
|
||||
printf("Can't lock file: %s\n", strerror(errno));
|
||||
exit(0);
|
||||
}
|
||||
ret = close(pid_fd);
|
||||
if(ret != 0){
|
||||
|
||||
printf("Can't close file: %s\n", strerror(errno));
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
@ -205,7 +207,8 @@ Server::Stop() {
|
||||
if (!pid_filename_.empty()) {
|
||||
int ret = unlink(pid_filename_.c_str());
|
||||
if(ret != 0){
|
||||
|
||||
printf("Can't unlink file: %s\n", strerror(errno));
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
@ -216,6 +219,7 @@ Server::Stop() {
|
||||
#ifdef ENABLE_LICENSE
|
||||
server::LicenseCheck::GetInstance().StopCountingDown();
|
||||
#endif
|
||||
printf("Milvus server is closed!\n");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user