|
|
@ -141,6 +141,14 @@ void iDeleteReq::Prepare(FieldDB *DB) { |
|
|
|
s = Status::OK(); |
|
|
|
return ; |
|
|
|
} |
|
|
|
auto [istatus,parent] = DB->index_[*Field]; |
|
|
|
if(istatus == FieldDB::Exist) { |
|
|
|
DB->index_[*Field] = {FieldDB::Creating,this}; |
|
|
|
done = true; |
|
|
|
} else { |
|
|
|
//如果正在创建或者删除,那么pend到对应的请求上
|
|
|
|
parent->PendReq(this); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void iDeleteReq::ConstructBatch(WriteBatch &KVBatch,WriteBatch &IndexBatch, |
|
|
|