-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathk2hftfusesvr.cc
More file actions
617 lines (551 loc) · 19.1 KB
/
k2hftfusesvr.cc
File metadata and controls
617 lines (551 loc) · 19.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
/*
* k2hftfuse for file transaction by FUSE-based file system
*
* Copyright 2015 Yahoo Japan Corporation.
*
* k2hftfuse is file transaction system on FUSE file system with
* K2HASH and K2HASH TRANSACTION PLUGIN, CHMPX.
*
* For the full copyright and license information, please view
* the license file that was distributed with this source code.
*
* AUTHOR: Takeshi Nakatani
* CREATE: Tue Sep 1 2015
* REVISION:
*
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <signal.h>
#include <k2hash/k2hash.h>
#include <k2hash/k2hcommand.h>
#include <k2hash/k2htransfunc.h>
#include <chmpx/chmpx.h>
#include <chmpx/chmcntrl.h>
#include <chmpx/chmconfutil.h>
#include <map>
#include "k2hftcommon.h"
#include "k2hftsvrinfo.h"
#include "k2hftstructure.h"
#include "k2hftutil.h"
#include "k2hftdbg.h"
using namespace std;
//---------------------------------------------------------
// Symbol
//---------------------------------------------------------
#define K2HFTSVR_EVENT_WAIT_TIMEMS 1000 // 1s
// Environment
#define K2HFTSVR_CONFFILE_ENV_NAME "K2HFTSVRCONFFILE"
#define K2HFTSVR_JSONCONF_ENV_NAME "K2HFTSVRJSONCONF"
//---------------------------------------------------------
// Structure
//---------------------------------------------------------
//
// For option parser
//
typedef struct opt_param{
std::string rawstring;
bool is_number;
int num_value;
}OPTPARAM, *POPTPARAM;
typedef std::map<std::string, OPTPARAM> optparams_t;
//---------------------------------------------------------
// Variable
//---------------------------------------------------------
static volatile bool is_doing_loop = true;
//---------------------------------------------------------
// Version
//---------------------------------------------------------
extern char k2hftfusesvr_commit_hash[];
static void k2hftfusesvr_print_version(FILE* stream)
{
static const char format[] =
"\n"
"k2hftfusesvr Version %s (commit: %s)\n"
"\n"
"Copyright(C) 2015 Yahoo Japan Corporation.\n"
"\n"
"k2hftfusesvr is file transaction receiver server on FUSE file\n"
"system with K2HASH and K2HASH TRANSACTION PLUGIN, CHMPX.\n"
"\n";
if(!stream){
stream = stdout;
}
fprintf(stream, format, VERSION, k2hftfusesvr_commit_hash);
k2h_print_version(stream);
chmpx_print_version(stream);
}
static void k2hftfusesvr_print_usage(FILE* stream)
{
if(!stream){
stream = stdout;
}
fprintf(stream, "[Usage] k2hftfusesvr\n"
"\n"
" k2hftfusesvr [k2hftfusesvr or fuse options]\n"
"\n"
" * k2hftfusesvr options:\n"
" -h(help) print help\n"
" -v(version) print version\n"
" -conf <configuration file> specify configuration file(.ini .yaml .json) for k2hftfusesvr and all sub system\n"
" -json <json string> specify configuration json string for k2hftfusesvr and all sub system\n"
" -d(g) {err|wan|msg|silent} set debug level affect only k2hftfusesvr\n"
"\n"
" * k2hftfusesvr environments:\n"
" K2HFTSVRCONFFILE specify configuration file(.ini .yaml .json) instead of conf option.\n"
" K2HFTSVRJSONCONF specify json string as configuration instead of json option.\n"
"\n"
" Please see man page - k2hftfusesvr(1) for more details.\n"
"\n" );
}
static bool parse_parameter(int argc, const char** argv, optparams_t& optparams)
{
if(argc < 2 || !argv){
ERR_K2HFTPRN("no parameters.");
return false;
}
optparams.clear();
for(int cnt = 1; cnt < argc && argv[cnt]; cnt++){
OPTPARAM param;
param.rawstring = "";
param.is_number = false;
param.num_value = 0;
// get option name
const char* popt = argv[cnt];
if(K2HFT_ISEMPTYSTR(popt)){
continue; // skip
}
if('-' != *popt){
ERR_K2HFTPRN("%s option is not started with \"-\".", popt);
continue;
}
// check option parameter
if((cnt + 1) < argc && argv[cnt + 1]){
const char* pparam = argv[cnt + 1];
if(!K2HFT_ISEMPTYSTR(pparam) && '-' != *pparam){
// found param
param.rawstring = pparam;
// check number
param.is_number = true;
for(const char* ptmp = pparam; *ptmp; ++ptmp){
if(0 == isdigit(*ptmp)){
param.is_number = false;
break;
}
}
// cppcheck-suppress knownConditionTrueFalse
if(param.is_number){
param.num_value = atoi(pparam);
}
++cnt;
}
}
optparams[lower(string(popt))] = param;
}
return true;
}
//---------------------------------------------------------
// Parser
//---------------------------------------------------------
static bool ParseBinCom(PBCOM pBinCom, unsigned char** ppKey, size_t& keylen, unsigned char** ppVal, size_t& vallen)
{
if(!pBinCom){
ERR_K2HFTPRN("pBinCom is NULL.");
return false;
}
// check type
if(SCOM_SET_ALL != pBinCom->scom.type && SCOM_REPLACE_VAL != pBinCom->scom.type && SCOM_OW_VAL != pBinCom->scom.type){
// [NOTE]
// Often come here because removing key makes DEL_KEY transaction.
// REP_ATTRS should not occur, because attributes are not changed on this system.
//
//MSG_K2HFTPRN("pBinCom data type(%ld: %s) is not k2hftfusesvr target type.", pBinCom->scom.type, pBinCom->scom.szCommand);
return false;
}
// check data and set buffer
if(0 == pBinCom->scom.key_length || 0 == pBinCom->scom.val_length){
WAN_K2HFTPRN("pBinCom doe not have key or value.");
return false;
}
*ppKey = static_cast<unsigned char*>(&pBinCom->byData[pBinCom->scom.key_pos]);
*ppVal = static_cast<unsigned char*>(&pBinCom->byData[pBinCom->scom.val_pos]);
keylen = pBinCom->scom.key_length;
vallen = pBinCom->scom.val_length;
return true;
}
//---------------------------------------------------------
// Utility
//---------------------------------------------------------
static K2HShm* MakeTransK2h(const K2hFtSvrInfo& confinfo)
{
if(!confinfo.IsTransMode()){
ERR_K2HFTPRN("ConfInfo does not transfer mode.");
return NULL;
}
// attach k2hash for output transfer
K2HShm* pTransK2h = new K2HShm();
// set thread pool count
if(!K2HShm::SetTransThreadPool(confinfo.GetThreadCntTransK2h())){
ERR_K2HFTPRN("Failed to set transaction thread pool(count=%d).", confinfo.GetThreadCntTransK2h());
K2HFT_DELETE(pTransK2h);
return NULL;
}
// make k2hash
bool bresult = false;
if(confinfo.IsMemoryTypeTransK2h()){
// memory type
bresult = pTransK2h->AttachMem(confinfo.GetMaskTransK2h(), confinfo.GetCMaskTransK2h(), confinfo.GetElementCntTransK2h(), confinfo.GetPageSizeTransK2h());
}else{
// file type
if(confinfo.IsInitializeTransK2h()){
// if file exists, remove it.
if(!remove_exist_file(confinfo.GetPathTransK2h())){
ERR_K2HFTPRN("Found file(%s), but could not initialize it.", confinfo.GetPathTransK2h());
bresult = false;
}else{
bresult = pTransK2h->Attach(confinfo.GetPathTransK2h(), false, true, false, confinfo.IsFullmapTransK2h(), confinfo.GetMaskTransK2h(), confinfo.GetCMaskTransK2h(), confinfo.GetElementCntTransK2h(), confinfo.GetPageSizeTransK2h());
}
}else{
bresult = pTransK2h->Attach(confinfo.GetPathTransK2h(), false, true, false, confinfo.IsFullmapTransK2h(), confinfo.GetMaskTransK2h(), confinfo.GetCMaskTransK2h(), confinfo.GetElementCntTransK2h(), confinfo.GetPageSizeTransK2h());
}
}
if(!bresult){
ERR_K2HFTPRN("Could not build internal transfer k2hash file(memory) for k2hftfusesvr.");
K2HFT_DELETE(pTransK2h);
return NULL;
}
// load k2htpdtor
if(!K2HTransDynLib::get()->Load(confinfo.GetCtpDtorPath())){
ERR_K2HFTPRN("Could not load %s transaction plugin.", confinfo.GetCtpDtorPath());
pTransK2h->Detach();
K2HFT_DELETE(pTransK2h);
return NULL;
}
// enable transaction plugin
if(!pTransK2h->EnableTransaction(NULL, NULL, 0L, reinterpret_cast<const unsigned char*>(confinfo.GetConfigTransK2h()), strlen(confinfo.GetConfigTransK2h()) + 1)){
ERR_K2HFTPRN("Could not enable %s transaction plugin.", confinfo.GetCtpDtorPath());
ERR_K2HFTPRN("Hint! Please check chmpx slave process running, if it does not run, k2hftfuse can not run.");
K2HTransDynLib::get()->Unload();
pTransK2h->Detach();
K2HFT_DELETE(pTransK2h);
return NULL;
}
return pTransK2h;
}
//---------------------------------------------------------
// Signal handler
//---------------------------------------------------------
static void SigHuphandler(int signum)
{
if(SIGHUP == signum){
is_doing_loop = false;
}
}
//---------------------------------------------------------
// Processing
//---------------------------------------------------------
bool Processing(K2hFtSvrInfo& confinfo, K2hFtPluginMan& pluginman, K2HShm* pTransK2h, K2hFtFdCache& fdcache, bool IsUnityMode, string& OutputPath, unsigned char* pbody, size_t length)
{
if(!pbody){
ERR_K2HFTPRN("Body data is empty.");
return false;
}
// parse body to key & value
unsigned char* pKey = NULL;
unsigned char* pVal = NULL;
size_t keylen = 0;
size_t vallen = 0;
{
PBCOM pBinCom = reinterpret_cast<PBCOM>(pbody);
if(length != scom_total_length(pBinCom->scom)){
ERR_K2HFTPRN("Length(%zu) of received message body is wrong(should be %zu).", length, scom_total_length(pBinCom->scom));
return false;
}
if(!ParseBinCom(pBinCom, &pKey, keylen, &pVal, vallen)){
// [NOTE]
// Often come here because removing key makes DEL_KEY transaction.
// Because of the suppression of the output of the error message, returns true.
//
//MSG_K2HFTPRN("Received data is not target type, or does not have key or value, or something wrong occurred.");
return true;
}
}
// output file mode
if(confinfo.IsOutputFileMode()){
PK2HFTVALUE pk2hftval = reinterpret_cast<PK2HFTVALUE>(pVal);
size_t count = 0;
PK2HFTLINE pLines = GetK2hFtLines(pk2hftval, &count);
char* filepath = NULL;
char* pfusepid = NULL;
// get filepath & pid
if(!ParseK2hFtKey(pKey, &filepath, &pfusepid) || !filepath || !pfusepid){
ERR_K2HFTPRN("Could not parse received key and value to some parts.");
}else{
unsigned char* pFileOutput = NULL; // stacking for putting file
size_t FilePutSize = 0;
string OutputFile;
// make target file path & plugin
if(IsUnityMode){
OutputFile = OutputPath;
}else{
OutputFile = OutputPath + filepath;
}
// loop for line count
for(size_t cnt = 0; cnt < count && pLines; ++cnt){
PK2HFTLINE pNextLines = GetNextK2hFtLine(pLines);
// parse
unsigned char* data = NULL;
size_t datalength = 0;
char* hostname = NULL;
struct timespec ts = {0, 0};
pid_t pid = K2HFT_INVALID_PID;
string cvtoutput; // temporary for converted output
if(!ParseK2hFtLine(pLines, &data, &datalength, &hostname, &ts, &pid) || !data || 0 == datalength || !hostname){
ERR_K2HFTPRN("Could not parse received key and value to some parts, but continue...");
continue;
}
// for debugging
if(IS_K2HFTDBG_DUMP()){
K2HFTPRN("Received data = {");
K2HFTPRN(" file path : %s", filepath);
K2HFTPRN(" fuse pid : %s", pfusepid);
K2HFTPRN(" data = {");
K2HFTPRN(" %s", reinterpret_cast<char*>(data));
K2HFTPRN(" }");
K2HFTPRN(" data length : %zu", datalength);
K2HFTPRN(" hostname : %s", hostname);
K2HFTPRN(" client pid : %d", pid);
K2HFTPRN(" time spec : %zds %09ldns", ts.tv_sec, ts.tv_nsec);
K2HFTPRN("}");
}
// convert output data
if(confinfo.IsNeedConvert()){
// convert output
if(!confinfo.ConvertOutput(cvtoutput, hostname, pid, filepath, &ts, reinterpret_cast<const char*>(data)) || cvtoutput.empty()){
ERR_K2HFTPRN("Failed to convert output data.");
continue;
}
// set pointer etc
data = const_cast<unsigned char*>(reinterpret_cast<const unsigned char*>(cvtoutput.c_str()));
datalength = cvtoutput.length();
}
// put data
if(!confinfo.IsPluginEmpty()){
// get plugin (or make new plugin and run)
PK2HFT_PLUGIN pPlugin;
if(NULL == (pPlugin = confinfo.GetPlugin(OutputFile, OutputPath, pluginman))){
ERR_K2HFTPRN("Not running plugin for %s.", OutputFile.c_str());
}else{
// put to plugin
if(!pluginman.Write(pPlugin, data, ((!confinfo.IsBinMode() && 0x00 == data[datalength - 1]) ? (datalength - 1) : datalength))){
ERR_K2HFTPRN("Could not write to plugin input pipe.");
}
}
}else{
// put file, do stacking
size_t NewSize = FilePutSize + ((!confinfo.IsBinMode() && 0x00 == data[datalength - 1]) ? (datalength - 1) : datalength);
unsigned char* pTmpFile;
if(NULL == (pTmpFile = reinterpret_cast<unsigned char*>(realloc(pFileOutput, NewSize)))){
ERR_K2HFTPRN("Could not allocate memory, but continue...");
}else{
pFileOutput = pTmpFile;
memcpy(&pFileOutput[FilePutSize], data, ((!confinfo.IsBinMode() && 0x00 == data[datalength - 1]) ? (datalength - 1) : datalength));
FilePutSize = NewSize;
}
}
pLines = pNextLines;
}
// put to file at HERE!
if(pFileOutput){
// put to file
if(!fdcache.Write(OutputFile, O_WRONLY | O_APPEND | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH, pFileOutput, FilePutSize)){
ERR_K2HFTPRN("Could not write to output file(%s).", OutputFile.c_str());
}
K2HFT_FREE(pFileOutput);
}
}
}
// transfer mode
if(confinfo.IsTransMode()){
// write trans k2hash
if(!pTransK2h->Set(pKey, keylen, pVal, vallen, NULL, true)){
if(IS_K2HFTDBG_DUMP()){
// parse key
char* filepath = NULL;
char* pfusepid = NULL;
if(ParseK2hFtKey(pKey, &filepath, &pfusepid)){
ERR_K2HFTPRN("Failed to transfer received data(file path=%s, pid=%s).", filepath ? filepath : "null", pfusepid ? pfusepid : "null");
}else{
ERR_K2HFTPRN("Failed to transfer received data(could not print detail for dump mode because could not parse key).");
}
}else{
ERR_K2HFTPRN("Failed to transfer received data.");
}
}
}
return true;
}
//---------------------------------------------------------
// Main
//---------------------------------------------------------
int main(int argc, const char** argv)
{
// always foreground mode
k2hft_foreground_mode = true;
// parse parameter
optparams_t optparams;
if(!parse_parameter(argc, argv, optparams)){
K2HFTERR("There is no parameter, please run with \"-help\" or see man page, you can see help.");
exit(EXIT_FAILURE);
}
// -h / -help
if(optparams.end() != optparams.find("-h") || optparams.end() != optparams.find("-help")){
k2hftfusesvr_print_usage(stdout);
exit(EXIT_SUCCESS);
}
// -v / -ver / -version
if(optparams.end() != optparams.find("-v") || optparams.end() != optparams.find("-ver") || optparams.end() != optparams.find("-version")){
k2hftfusesvr_print_version(stdout);
exit(EXIT_SUCCESS);
}
// -g / -d / -dbg
optparams_t::const_iterator paramiter;
if(optparams.end() != (paramiter = optparams.find("-g")) || optparams.end() != (paramiter = optparams.find("-d")) || optparams.end() != (paramiter = optparams.find("-dbg"))){
if(!SetK2hFtDbgModeByString(paramiter->second.rawstring.c_str())){
K2HFTERR("Option \"-d(-g)\" has wrong parameter(%s)", paramiter->second.rawstring.c_str());
exit(EXIT_FAILURE);
}
}else{
SetK2hFtDbgMode(K2HFTDBG_SILENT);
}
// -conf / -json / environment
string config;
if(optparams.end() != (paramiter = optparams.find("-conf"))){
config = paramiter->second.rawstring.c_str();
}else if(optparams.end() != (paramiter = optparams.find("-json"))){
config = paramiter->second.rawstring.c_str();
}else{
CHMCONFTYPE conftye = check_chmconf_type_ex(NULL, K2HFTSVR_CONFFILE_ENV_NAME, K2HFTSVR_JSONCONF_ENV_NAME, &config);
if(CHMCONF_TYPE_UNKNOWN == conftye || CHMCONF_TYPE_NULL == conftye){
K2HFTERR("Option \"-conf\" or \"-json\" or environments for configuration must specify for configuration.");
exit(EXIT_FAILURE);
}
}
// initialize fd cache object
K2hFtFdCache fdcache; // fd cache class
if(!fdcache.Initialize()){
ERR_K2HFTPRN("Could not initialize fd cache object.");
exit(EXIT_FAILURE);
}
// initialize plugin manager
K2hFtPluginMan pluginman; // plugin manager
if(!pluginman.Initialize(&fdcache)){
ERR_K2HFTPRN("Could not initialize plugin manager.");
exit(EXIT_FAILURE);
}
// load
K2hFtSvrInfo confinfo;
if(!confinfo.Load(config.c_str(), pluginman)){
K2HFTERR("Failed to load configuration(%s), something wrong in file.", config.c_str());
exit(EXIT_FAILURE);
}
// for debugging
if(IS_K2HFTDBG_DUMP()){
confinfo.Dump();
}
// set exit signal
struct sigaction sa;
sigemptyset(&sa.sa_mask);
sigaddset(&sa.sa_mask, SIGHUP);
sa.sa_flags = 0;
sa.sa_handler = SigHuphandler;
if(0 > sigaction(SIGHUP, &sa, NULL)){
K2HFTERR("Failed to set signal HUP handler, errno(%d)", errno);
exit(EXIT_FAILURE);
}
// join chmpx(server mode for receiving)
ChmCntrl ChmpxServer;
if(!ChmpxServer.InitializeOnServer(confinfo.GetConfiguration(), false)){
K2HFTERR("Could not join chmpx server, configuration file is %s.", confinfo.GetConfiguration());
exit(EXIT_FAILURE);
}
// attach k2hash for output transfer
K2HShm* pTransK2h = NULL;
if(confinfo.IsTransMode()){
if(NULL == (pTransK2h = MakeTransK2h(confinfo))){
exit(EXIT_FAILURE);
}
}
// run plugin
if(!pluginman.IsEmpty()){
if(!pluginman.RunPlugins()){
K2HFTERR("Could not join chmpx server, configuration file is %s.", confinfo.GetConfiguration());
exit(EXIT_FAILURE);
}
}
// static data in loop for output file mode.
bool IsUnityMode = confinfo.IsUnityFileMode();
string OutputPath = IsUnityMode ? confinfo.GetUnityFilePath() : confinfo.GetOutputBaseDir();
// main loop
while(is_doing_loop){
// receive
PCOMPKT pComPkt = NULL;
unsigned char* pbody = NULL;
size_t length = 0;
if(!ChmpxServer.Receive(&pComPkt, &pbody, &length, K2HFTSVR_EVENT_WAIT_TIMEMS, true)){
WAN_K2HFTPRN("Something error occurred during receiving data.");
if(ChmpxServer.IsChmpxExit()){
K2HFTERR("chmpx server exited.");
break;
}
continue;
}
// check received data
if(!pComPkt){
MSG_K2HFTPRN("Timeouted %dms for waiting message, so continue to waiting.", K2HFTSVR_EVENT_WAIT_TIMEMS);
continue;
}
if(!pbody){
MSG_K2HFTPRN("NULL body data received.");
K2HFT_FREE(pComPkt);
continue;
}
K2HFT_FREE(pComPkt);
//MSG_K2HFTPRN("Succeed to receive message.");
// processing
if(!Processing(confinfo, pluginman, pTransK2h, fdcache, IsUnityMode, OutputPath, pbody, length)){
MSG_K2HFTPRN("Failed to processing, but continue...");
}
K2HFT_FREE(pbody);
}
// Stop plugins
//
// [NOTICE]
// Must stop all plugins before K2hFtSvrInfo is destructed.
// K2hFtPluginMan has all plugin objects which are pointers, the pointers
// are freed at K2hFtSvrInfo class destructor.
//
if(!pluginman.IsEmpty()){
if(!pluginman.Clean()){
ERR_K2HFTPRN("Failed to stop plugins, but continue...");
}
}
// destroy fd cache
if(!fdcache.Close()){
ERR_K2HFTPRN("Failed to destroy fd cache object, but continue...");
}
if(confinfo.IsTransMode() && !K2HTransDynLib::get()->Unload()){
ERR_K2HFTPRN("Failed to unload %s transaction plugin, but continue...", confinfo.GetCtpDtorPath());
}
exit(EXIT_SUCCESS);
}
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* End:
* vim600: noexpandtab sw=4 ts=4 fdm=marker
* vim<600: noexpandtab sw=4 ts=4
*/