mirror of https://gitee.com/bigwinds/arangodb
no need to use policy
This commit is contained in:
parent
b8236bc218
commit
e3ac7ed04c
|
@ -970,8 +970,6 @@ namespace triagens {
|
|||
return res;
|
||||
}
|
||||
|
||||
TRI_doc_update_policy_t updatePolicy;
|
||||
TRI_InitUpdatePolicy(&updatePolicy, TRI_DOC_UPDATE_LAST_WRITE, 0, NULL);
|
||||
const size_t n = ids.size();
|
||||
|
||||
for (size_t i = 0; i < n; ++i) {
|
||||
|
@ -980,10 +978,11 @@ namespace triagens {
|
|||
res = primary->remove(trxCollection,
|
||||
(const TRI_voc_key_t) id.c_str(),
|
||||
0,
|
||||
&updatePolicy,
|
||||
0, // policy
|
||||
false,
|
||||
forceSync);
|
||||
|
||||
|
||||
if (res != TRI_ERROR_NO_ERROR) {
|
||||
// halt on first error
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue