Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
Practical-Cryptdb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zhaozhen
Practical-Cryptdb
Commits
2beaf1cb
Commit
2beaf1cb
authored
Jan 26, 2018
by
yiwenshao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add more log
parent
b2507e02
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
final_load.cc
debug/final_load.cc
+13
-1
No files found.
debug/final_load.cc
View file @
2beaf1cb
...
...
@@ -167,6 +167,8 @@ void initGfb(std::vector<FieldMetaTrans> &res,std::string db,std::string table){
/*load file, decrypt, and then return data plain fields in the type ResType*/
static
ResType
load_files
(
std
::
string
db
,
std
::
string
table
){
timer
t_load_files
;
std
::
unique_ptr
<
SchemaInfo
>
schema
=
myLoadSchemaInfo
(
embeddedDir
);
//get all the fields in the tables.
std
::
vector
<
FieldMeta
*>
fms
=
getFieldMeta
(
*
schema
,
db
,
table
);
...
...
@@ -175,11 +177,16 @@ static ResType load_files(std::string db, std::string table){
for
(
unsigned
int
i
=
0
;
i
<
fms
.
size
();
i
++
){
res
[
i
].
trans
(
fms
[
i
]);
}
glog
<<
"loadtablemeta: "
<<
std
::
to_string
(
t_load_files
.
lap
()
/
1000000u
)
<<
"
\n
"
;
//then we should load all the fields available
initGfb
(
res
,
db
,
table
);
glog
<<
"initGfb: "
<<
std
::
to_string
(
t_load_files
.
lap
()
/
1000000u
)
<<
"
\n
"
;
std
::
shared_ptr
<
ReturnMeta
>
rm
=
getReturnMeta
(
fms
,
res
);
glog
<<
"getReturnMeta: "
<<
std
::
to_string
(
t_load_files
.
lap
()
/
1000000u
)
<<
"
\n
"
;
vector
<
string
>
field_names
=
ggbt
.
field_names
;
vector
<
int
>
field_types
=
ggbt
.
field_types
;
vector
<
int
>
field_lengths
=
ggbt
.
field_lengths
;
...
...
@@ -209,7 +216,12 @@ static ResType load_files(std::string db, std::string table){
resraw
.
fieldTypes
.
push_back
(
static_cast
<
enum_field_types
>
(
field_types
[
i
]));
}
ResType
rawtorestype
=
rawMySQLReturnValue_to_ResType
(
false
,
&
resraw
);
glog
<<
"transform: "
<<
std
::
to_string
(
t_load_files
.
lap
()
/
1000000u
)
<<
"
\n
"
;
auto
finalresults
=
decryptResults
(
rawtorestype
,
*
rm
);
glog
<<
"descryption: "
<<
std
::
to_string
(
t_load_files
.
lap
()
/
1000000u
)
<<
"
\n
"
;
return
finalresults
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment