1 Star 0 Fork 6

s_c_c/filemanagement_dfs_service

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0002-change-default-devsl-from-0-to-4.patch 1.72 KB
一键复制 编辑 原始数据 按行查看 历史
heppen 提交于 2023-06-24 20:48 . change default devsl from 0 to 4
From d37115e961f66357473e232a9591a6c5a803f9a6 Mon Sep 17 00:00:00 2001
From: heppen <[email protected]>
Date: Sat, 24 Jun 2023 18:09:33 +0800
Subject: [PATCH] change default devsl from 0 to 4
---
.../distributedfiledaemon/src/network/kernel_talker.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/services/distributedfiledaemon/src/network/kernel_talker.cpp b/services/distributedfiledaemon/src/network/kernel_talker.cpp
index bb53d50..8ee8dbb 100644
--- a/services/distributedfiledaemon/src/network/kernel_talker.cpp
+++ b/services/distributedfiledaemon/src/network/kernel_talker.cpp
@@ -75,15 +75,13 @@ void KernelTalker::SinkSessionTokernel(shared_ptr<BaseSession> session)
int socketFd = session->GetHandle();
auto masterkey = session->GetKey();
auto cid = session->GetCid();
- LOGD("sink session to kernel success, cid:%{public}s, socketFd:%{public}d, key[0]:%{public}x", cid.c_str(),
- socketFd, *(uint32_t *)masterkey.data());
uint8_t status = (session->IsFromServer() ? SOCKET_STAT_ACCEPT : SOCKET_STAT_OPEN);
UpdateSocketParam cmd = {
.cmd = CMD_UPDATE_SOCKET,
.newfd = socketFd,
- .devsl = 0,
+ .devsl = 4,
.status = status,
};
if (memcpy_s(cmd.masterKey, KEY_MAX_LEN, masterkey.data(), KEY_MAX_LEN) != EOK) {
@@ -94,6 +92,8 @@ void KernelTalker::SinkSessionTokernel(shared_ptr<BaseSession> session)
return;
}
SetCmd(cmd);
+ LOGD("sink session to kernel success, cid:%{public}s, socketFd:%{public}d, key[0]:%{public}x, devsl:%{public}d",
+ cid.c_str(), socketFd, *(uint32_t *)masterkey.data(), cmd.devsl);
// DevslDispatcher::DevslGetRegister(cid, shared_from_this());
}
--
2.33.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/s-c-c/filemanagement_dfs_service.git
[email protected]:s-c-c/filemanagement_dfs_service.git
s-c-c
filemanagement_dfs_service
filemanagement_dfs_service
master

搜索帮助