28 lines
740 B
Diff
28 lines
740 B
Diff
From f1abe05db080dfc3cbe9751fd0308af805a81b84 Mon Sep 17 00:00:00 2001
|
|
From: jiangheng12 <jiangheng14@huawei.com>
|
|
Date: Tue, 13 Jun 2023 11:00:59 +0800
|
|
Subject: [PATCH] fix gazellectl block before lstack registration is complete
|
|
|
|
---
|
|
src/ltran/ltran_stat.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/src/ltran/ltran_stat.c b/src/ltran/ltran_stat.c
|
|
index c17a5c1..2a0c03a 100644
|
|
--- a/src/ltran/ltran_stat.c
|
|
+++ b/src/ltran/ltran_stat.c
|
|
@@ -402,6 +402,10 @@ void handle_resp_lstack_transfer(const struct gazelle_stat_msg_request *msg, int
|
|
return;
|
|
}
|
|
|
|
+ if (!INSTANCE_IS_ON(instance)) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
int32_t lstack_fd = instance->sockfd;
|
|
if (lstack_fd < 0) {
|
|
return;
|
|
--
|
|
2.23.0
|
|
|