File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -539,8 +539,9 @@ template <> bool Node::handle<ERASE>(VPackSlice const& slice) {
539
539
540
540
if (this ->slice ().isArray ()) {
541
541
if (haveVal) {
542
+ VPackSlice valToErase = slice.get (" val" );
542
543
for (auto const & old : VPackArrayIterator (this ->slice ())) {
543
- if (old != slice. get ( " val " ) ) {
544
+ if (VelocyPackHelper::compare ( old, valToErase, /* useUTF8 */ true ) != 0 ) {
544
545
tmp.add (old);
545
546
}
546
547
}
@@ -581,8 +582,13 @@ bool Node::handle<REPLACE>(VPackSlice const& slice) {
581
582
Builder tmp;
582
583
{ VPackArrayBuilder t (&tmp);
583
584
if (this ->slice ().isArray ()) {
585
+ VPackSlice valToRepl = slice.get (" val" );
584
586
for (auto const & old : VPackArrayIterator (this ->slice ())) {
585
- tmp.add (old == slice.get (" val" ) ? slice.get (" new" ) : old);
587
+ if (VelocyPackHelper::compare (old, valToRepl, /* useUTF8*/ true ) == 0 ) {
588
+ tmp.add (slice.get (" new" ));
589
+ } else {
590
+ tmp.add (old);
591
+ }
586
592
}
587
593
}
588
594
}
Original file line number Diff line number Diff line change @@ -2013,8 +2013,7 @@ int ClusterInfo::ensureIndexCoordinatorWithoutRollback(
2013
2013
errorMsg = " Error during index creation: " + errorMsg;
2014
2014
2015
2015
// Returns the specific error number if set, or the general
2016
- // error
2017
- // otherwise
2016
+ // error otherwise
2018
2017
*dbServerResult =
2019
2018
arangodb::basics::VelocyPackHelper::getNumericValue<int >(
2020
2019
v, " errorNum" , TRI_ERROR_ARANGO_INDEX_CREATION_FAILED);
You can’t perform that action at this time.
0 commit comments