Skip to content

Commit 11e64e4

Browse files
committed
improved:delete unused parament for APIHelp_Distributed_UPStorage function
1 parent 6a05e10 commit 11e64e4

File tree

5 files changed

+13
-23
lines changed

5 files changed

+13
-23
lines changed

XEngine_Source/StorageModule_APIHelp/APIHelp_Define.h

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -97,22 +97,17 @@ extern "C" BOOL APIHelp_Distributed_DLStorage(LPCTSTR lpszMsgBuffer, list<XENGIN
9797
/********************************************************************
9898
函数名称:APIHelp_Distributed_UPStorage
9999
函数功能:通过分布式存储列表获得一个存储地址
100-
参数.一:lpszMsgBuffer
101-
In/Out:In
102-
类型:常量字符指针
103-
可空:N
104-
意思:输入要解析的URL
105-
参数.二:pStl_ListBucket
100+
参数.一:pStl_ListBucket
106101
In/Out:In
107102
类型:容器指针
108103
可空:N
109104
意思:输入要解析的列表
110-
参数.:pSt_StorageBucket
105+
参数.:pSt_StorageBucket
111106
In/Out:Out
112107
类型:数据结构指针
113108
可空:N
114109
意思:输出获取到的可用存储
115-
参数.:nMode
110+
参数.:nMode
116111
In/Out:In
117112
类型:整数型
118113
可空:N
@@ -122,7 +117,7 @@ extern "C" BOOL APIHelp_Distributed_DLStorage(LPCTSTR lpszMsgBuffer, list<XENGIN
122117
意思:是否成功
123118
备注:
124119
*********************************************************************/
125-
extern "C" BOOL APIHelp_Distributed_UPStorage(LPCTSTR lpszMsgBuffer, list<XENGINE_STORAGEBUCKET>* pStl_ListBucket, XENGINE_STORAGEBUCKET* pSt_StorageBucket, int nMode);
120+
extern "C" BOOL APIHelp_Distributed_UPStorage(list<XENGINE_STORAGEBUCKET>* pStl_ListBucket, XENGINE_STORAGEBUCKET* pSt_StorageBucket, int nMode);
126121
/********************************************************************
127122
函数名称:APIHelp_Distributed_GetPathKey
128123
函数功能:通过BUCKET名称查找对应路径

XEngine_Source/StorageModule_APIHelp/APIHelp_Distributed/APIHelp_Distributed.cpp

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -242,22 +242,17 @@ BOOL CAPIHelp_Distributed::APIHelp_Distributed_DLStorage(LPCTSTR lpszMsgBuffer,
242242
/********************************************************************
243243
函数名称:APIHelp_Distributed_UPStorage
244244
函数功能:通过分布式存储列表获得一个存储地址
245-
参数.一:lpszMsgBuffer
246-
In/Out:In
247-
类型:常量字符指针
248-
可空:N
249-
意思:输入要解析的URL
250-
参数.二:pStl_ListBucket
245+
参数.一:pStl_ListBucket
251246
In/Out:In
252247
类型:容器指针
253248
可空:N
254249
意思:输入要解析的列表
255-
参数.:pSt_StorageBucket
250+
参数.:pSt_StorageBucket
256251
In/Out:Out
257252
类型:数据结构指针
258253
可空:N
259254
意思:输出获取到的可用存储
260-
参数.:nMode
255+
参数.:nMode
261256
In/Out:In
262257
类型:整数型
263258
可空:N
@@ -267,7 +262,7 @@ BOOL CAPIHelp_Distributed::APIHelp_Distributed_DLStorage(LPCTSTR lpszMsgBuffer,
267262
意思:是否成功
268263
备注:
269264
*********************************************************************/
270-
BOOL CAPIHelp_Distributed::APIHelp_Distributed_UPStorage(LPCTSTR lpszMsgBuffer, list<XENGINE_STORAGEBUCKET>* pStl_ListBucket, XENGINE_STORAGEBUCKET* pSt_StorageBucket, int nMode)
265+
BOOL CAPIHelp_Distributed::APIHelp_Distributed_UPStorage(list<XENGINE_STORAGEBUCKET>* pStl_ListBucket, XENGINE_STORAGEBUCKET* pSt_StorageBucket, int nMode)
271266
{
272267
APIHelp_IsErrorOccur = FALSE;
273268

XEngine_Source/StorageModule_APIHelp/APIHelp_Distributed/APIHelp_Distributed.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class CAPIHelp_Distributed
2121
BOOL APIHelp_Distributed_RandomAddr(list<string>* pStl_ListAddr, TCHAR* ptszAddr, int nMode);
2222
BOOL APIHelp_Distributed_FileList(list<APIHELP_LBFILEINFO>* pStl_ListParse, XSTORAGECORE_DBFILE*** pppSt_ListPacket, int* pInt_ListCount);
2323
BOOL APIHelp_Distributed_DLStorage(LPCTSTR lpszMsgBuffer, list<XENGINE_STORAGEBUCKET>* pStl_ListBucket, XENGINE_STORAGEBUCKET* pSt_StorageBucket);
24-
BOOL APIHelp_Distributed_UPStorage(LPCTSTR lpszMsgBuffer, list<XENGINE_STORAGEBUCKET>* pStl_ListBucket, XENGINE_STORAGEBUCKET* pSt_StorageBucket, int nMode);
24+
BOOL APIHelp_Distributed_UPStorage(list<XENGINE_STORAGEBUCKET>* pStl_ListBucket, XENGINE_STORAGEBUCKET* pSt_StorageBucket, int nMode);
2525
BOOL APIHelp_Distributed_GetPathKey(list<XENGINE_STORAGEBUCKET>* pStl_ListBucket, LPCTSTR lpszBuckKey, TCHAR* ptszFilePath);
2626
protected:
2727
BOOL APIHelp_Distributed_FileListParse(LPCTSTR lpszMsgBuffer, int nMsgLen, XSTORAGECORE_DBFILE* pSt_DBFile);

XEngine_Source/StorageModule_APIHelp/pch.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ extern "C" BOOL APIHelp_Distributed_DLStorage(LPCTSTR lpszMsgBuffer, list<XENGIN
4343
{
4444
return m_APIDistributed.APIHelp_Distributed_DLStorage(lpszMsgBuffer, pStl_ListBucket, pSt_StorageBucket);
4545
}
46-
extern "C" BOOL APIHelp_Distributed_UPStorage(LPCTSTR lpszMsgBuffer, list<XENGINE_STORAGEBUCKET>*pStl_ListBucket, XENGINE_STORAGEBUCKET * pSt_StorageBucket, int nMode)
46+
extern "C" BOOL APIHelp_Distributed_UPStorage(list<XENGINE_STORAGEBUCKET>*pStl_ListBucket, XENGINE_STORAGEBUCKET * pSt_StorageBucket, int nMode)
4747
{
48-
return m_APIDistributed.APIHelp_Distributed_UPStorage(lpszMsgBuffer, pStl_ListBucket, pSt_StorageBucket, nMode);
48+
return m_APIDistributed.APIHelp_Distributed_UPStorage(pStl_ListBucket, pSt_StorageBucket, nMode);
4949
}
5050
extern "C" BOOL APIHelp_Distributed_GetPathKey(list<XENGINE_STORAGEBUCKET>*pStl_ListBucket, LPCTSTR lpszBuckKey, TCHAR * ptszFilePath)
5151
{

XEngine_Source/XEngine_StorageApp/StorageApp_UPLoader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ BOOL XEngine_Task_HttpUPLoader(LPCTSTR lpszClientAddr, LPCTSTR lpszMsgBuffer, in
165165
//http://127.0.0.1:5102/api?filename=1.txt&storeagekey=storagekey1
166166
if (_tcslen(st_StorageBucket.tszBuckKey) > 0)
167167
{
168-
if (!APIHelp_Distributed_UPStorage(pSt_HTTPParam->tszHttpUri, st_LoadbalanceCfg.st_LoadBalance.pStl_ListBucket, &st_StorageBucket, 4))
168+
if (!APIHelp_Distributed_UPStorage(st_LoadbalanceCfg.st_LoadBalance.pStl_ListBucket, &st_StorageBucket, 4))
169169
{
170170
st_HDRParam.bIsClose = TRUE;
171171
st_HDRParam.nHttpCode = 413;
@@ -178,7 +178,7 @@ BOOL XEngine_Task_HttpUPLoader(LPCTSTR lpszClientAddr, LPCTSTR lpszMsgBuffer, in
178178
}
179179
else
180180
{
181-
if (!APIHelp_Distributed_UPStorage(pSt_HTTPParam->tszHttpUri, st_LoadbalanceCfg.st_LoadBalance.pStl_ListBucket, &st_StorageBucket, st_LoadbalanceCfg.st_LBLocation.nUPLoadMode))
181+
if (!APIHelp_Distributed_UPStorage(st_LoadbalanceCfg.st_LoadBalance.pStl_ListBucket, &st_StorageBucket, st_LoadbalanceCfg.st_LBLocation.nUPLoadMode))
182182
{
183183
st_HDRParam.bIsClose = TRUE;
184184
st_HDRParam.nHttpCode = 413;

0 commit comments

Comments
 (0)