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
9fb94e3e
Commit
9fb94e3e
authored
Apr 26, 2018
by
yiwenshao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug in debug/final_load
parent
695a0163
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
final_load.cc
debug/final_load.cc
+14
-4
No files found.
debug/final_load.cc
View file @
9fb94e3e
...
...
@@ -201,7 +201,6 @@ 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
)
<<
"##"
<<
std
::
to_string
(
time
(
NULL
))
<<
"
\n
"
;
...
...
@@ -228,6 +227,14 @@ static ResType load_files(std::string db, std::string table){
for
(
auto
item
:
field_names
){
res_field
.
push_back
(
gfb
.
annoOnionNameToFileVector
[
item
]);
}
//check here
for
(
auto
item
:
res_field
){
if
(
item
.
size
()
==
0
)
{
return
ResType
(
false
,
0
,
0
);
}
}
//then transform it to ress_fields
unsigned
int
length
=
res_field
[
0
].
size
();
...
...
@@ -362,7 +369,10 @@ main(int argc, char* argv[]){
/*choose decryption onion, load and decrypt to plain text*/
ResType
res
=
load_files
(
db
,
table
);
if
(
!
res
.
success
()){
glog
<<
"empty table
\n
"
;
return
0
;
}
glog
<<
"load_files: "
<<
std
::
to_string
(
t_init
.
lap
()
/
1000000u
)
<<
"##"
<<
std
::
to_string
(
time
(
NULL
))
<<
"
\n
"
;
...
...
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