适配非行列式透传落地文件名
This commit is contained in:
@@ -231,7 +231,8 @@ bool doris_read_table_file(struct doris_idxfile_scanner *scanner, struct cfg_tab
|
||||
FILE *fp;
|
||||
size_t readlen, remainlen, oncesize;
|
||||
MD5_CTX md5ctx;
|
||||
char md5buffer[64], *user_region=NULL;
|
||||
char md5buffer[64], *filename;
|
||||
struct tablemeta meta;
|
||||
|
||||
if((fp = fopen(table->cfg_path, "r")) == NULL)
|
||||
{
|
||||
@@ -240,11 +241,14 @@ bool doris_read_table_file(struct doris_idxfile_scanner *scanner, struct cfg_tab
|
||||
}
|
||||
MD5_Init(&md5ctx);
|
||||
|
||||
if(table->user_region[0] != '\0')
|
||||
{
|
||||
user_region = table->user_region;
|
||||
}
|
||||
doris_cbs->cfgfile_start(NULL, table->table_name, table->filesize, table->cfg_num, user_region, doris_cbs->userdata);
|
||||
meta.tablename = table->table_name;
|
||||
filename = strrchr(table->cfg_path, '/');
|
||||
meta.filename = (filename!=NULL)?(filename + 1):table->cfg_path;
|
||||
meta.userregion = (table->user_region[0] != '\0')?table->user_region:NULL;
|
||||
meta.size = table->filesize;
|
||||
meta.cfgnum = table->cfg_num;
|
||||
doris_cbs->cfgfile_start(NULL, &meta, table->cfg_path, doris_cbs->userdata);
|
||||
|
||||
remainlen = table->filesize;
|
||||
while(remainlen > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user