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
d1e79c9a
Commit
d1e79c9a
authored
Mar 18, 2018
by
yiwenshao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add comments
parent
d6fe6757
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
Analysis.cc
main/Analysis.cc
+2
-3
schema.cc
main/schema.cc
+1
-1
reset.sh
reset.sh
+1
-0
No files found.
main/Analysis.cc
View file @
d1e79c9a
...
...
@@ -546,7 +546,7 @@ bool create_delta_helper(CreateDelta* this_is, const std::unique_ptr<Connect> &e
// auto_increment on the BLEEDING and REGULAR tables
bool
CreateDelta
::
apply
(
const
std
::
unique_ptr
<
Connect
>
&
e_conn
,
Delta
::
TableType
table_type
){
//
第一次apply,先写bleeding table.这个时候,map里面没有内容
.
//
The first time we call this function, bleeding table will be written. nothing is stored in the map
.
if
(
BLEEDING_TABLE
==
table_type
)
{
assert
(
0
==
id_cache
.
size
());
}
...
...
@@ -622,8 +622,7 @@ bool DeleteDelta::apply(const std::unique_ptr<Connect> &e_conn,
bool
writeDeltas
(
const
std
::
unique_ptr
<
Connect
>
&
e_conn
,
const
std
::
vector
<
std
::
unique_ptr
<
Delta
>
>
&
deltas
,
Delta
::
TableType
table_type
)
{
Delta
::
TableType
table_type
)
{
for
(
const
auto
&
it
:
deltas
)
{
RFIF
(
it
->
apply
(
e_conn
,
table_type
));
}
...
...
main/schema.cc
View file @
d1e79c9a
...
...
@@ -156,7 +156,7 @@ OnionMeta::fetchChildren(const std::unique_ptr<Connect> &e_conn)
return
DBMeta
::
doFetchChildren
(
e_conn
,
deserialHelper
);
}
//this applyTochildren is different from that of MappedMetadata because Enclayer is stored as vector.
bool
OnionMeta
::
applyToChildren
(
std
::
function
<
bool
(
const
DBMeta
&
)
>
fn
)
const
...
...
reset.sh
View file @
d1e79c9a
...
...
@@ -3,4 +3,5 @@ mysql -uroot -pletmein -h127.0.0.1 -e "drop database if exists tdb"
mysql
-uroot
-pletmein
-h127
.0.0.1
-e
"drop database if exists tdb2"
mysql
-uroot
-pletmein
-h127
.0.0.1
-e
"drop database if exists tdb3"
mysql
-uroot
-pletmein
-h127
.0.0.1
-e
"drop database if exists micro_db"
mysql
-uroot
-pletmein
-h127
.0.0.1
-e
"drop database if exists temp"
rm
-rf
./shadow/
*
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