Commit c80550bf authored by yiwenshao's avatar yiwenshao

change encrypt_item_all_onions in file main/rewrite_util.cc to handle backup workload

parent 4fe1c5a8
...@@ -674,11 +674,14 @@ encrypt_item_all_onions(const Item &i, const FieldMeta &fm, ...@@ -674,11 +674,14 @@ encrypt_item_all_onions(const Item &i, const FieldMeta &fm,
for (auto it : fm.orderedOnionMetas()) { for (auto it : fm.orderedOnionMetas()) {
const onion o = it.first->getValue(); const onion o = it.first->getValue();
OnionMeta * const om = it.second; OnionMeta * const om = it.second;
//一个fieldmeta表示一个field, 内部的不同洋葱表现在onionMeta,每个onionMeta的不同层次表现 //一个fieldmeta表示一个field, 内部的不同洋葱表现在onionMeta,每个onionMeta的不同层次表现
//在enclyer. 而保持的时候, 是onometekey,onoinmeta这种pair来让我们知道这个onionMeta是哪种 //在enclyer. 而保持的时候, 是onometekey,onoinmeta这种pair来让我们知道这个onionMeta是哪种
//枚举的洋葱类型. //枚举的洋葱类型.
l->push_back(encrypt_item_layers(i, o, *om, a, IV)); if(om!=NULL)//om could be NULL for backup workload
l->push_back(encrypt_item_layers(i, o, *om, a, IV));
else l->push_back(NULL);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment