@@ -2314,7 +2314,7 @@ int MMFilesCollection::insert(transaction::Methods* trx,
2314
2314
transaction::BuilderLeaser builder (trx);
2315
2315
VPackSlice newSlice;
2316
2316
int res = TRI_ERROR_NO_ERROR;
2317
- if (options.recoveryMarker == nullptr ) {
2317
+ if (options.recoveryData == nullptr ) {
2318
2318
TIMER_START (TRANSACTION_NEW_OBJECT_FOR_INSERT);
2319
2319
res = newObjectForInsert (trx, slice, fromSlice, toSlice, isEdgeCollection,
2320
2320
*builder.get (), options.isRestore );
@@ -2336,10 +2336,10 @@ int MMFilesCollection::insert(transaction::Methods* trx,
2336
2336
static_cast <MMFilesTransactionState*>(trx->state ())->idForMarker (), newSlice);
2337
2337
2338
2338
MMFilesWalMarker const * marker;
2339
- if (options.recoveryMarker == nullptr ) {
2339
+ if (options.recoveryData == nullptr ) {
2340
2340
marker = &insertMarker;
2341
2341
} else {
2342
- marker = options.recoveryMarker ;
2342
+ marker = static_cast <MMFilesWalMarker*>( options.recoveryData ) ;
2343
2343
}
8000
code>
2344
2344
2345
2345
// now insert into indexes
@@ -2746,7 +2746,7 @@ int MMFilesCollection::update(arangodb::transaction::Methods* trx,
2746
2746
2747
2747
// merge old and new values
2748
2748
transaction::BuilderLeaser builder (trx);
2749
- if (options.recoveryMarker == nullptr ) {
2749
+ if (options.recoveryData == nullptr ) {
2750
2750
mergeObjectsForUpdate (trx, oldDoc, newSlice, isEdgeCollection,
2751
2751
TRI_RidToString (revisionId), options.mergeObjects ,
2752
2752
options.keepNull , *builder.get ());
@@ -2768,10 +2768,10 @@ int MMFilesCollection::update(arangodb::transaction::Methods* trx,
2768
2768
static_cast <MMFilesTransactionState*>(trx->state ())->idForMarker (), builder->slice ());
2769
2769
2770
2770
MMFilesWalMarker const * marker;
2771
- if (options.recoveryMarker == nullptr ) {
2771
+ if (options.recoveryData == nullptr ) {
2772
2772
marker = &updateMarker;
2773
2773
} else {
2774
- marker = options.recoveryMarker ;
2774
+ marker = static_cast <MMFilesWalMarker*>( options.recoveryData ) ;
2775
2775
}
2776
2776
2777
2777
VPackSlice const newDoc (marker->vpack ());
@@ -2893,10 +2893,10 @@ int MMFilesCollection::replace(
2893
2893
static_cast <MMFilesTransactionState*>(trx->state ())->idForMarker (), builder->slice ());
2894
2894
2895
2895
MMFilesWalMarker const * marker;
2896
- if (options.recoveryMarker == nullptr ) {
2896
+ if (options.recoveryData == nullptr ) {
2897
2897
marker = &replaceMarker;
2898
2898
} else {
2899
- marker = options.recoveryMarker ;
2899
+ marker = static_cast <MMFilesWalMarker*>( options.recoveryData ) ;
2900
2900
}
2901
2901
2902
2902
VPackSlice const newDoc (marker->vpack ());
@@ -2973,10 +2973,10 @@ int MMFilesCollection::remove(arangodb::transaction::Methods* trx, VPackSlice co
2973
2973
builder->slice ());
2974
2974
2975
2975
MMFilesWalMarker const * marker;
2976
- if (options.recoveryMarker == nullptr ) {
2976
+ if (options.recoveryData == nullptr ) {
2977
2977
marker = &removeMarker;
2978
2978
} else {
2979
- marker = options.recoveryMarker ;
2979
+ marker = static_cast <MMFilesWalMarker*>( options.recoveryData ) ;
2980
2980
}
2981
2981
2982
2982
TRI_IF_FAILURE (" RemoveDocumentNoLock" ) {
0 commit comments