File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
src/org/exist/storage/dom Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -2272,6 +2272,15 @@ protected void redoAddValue(final AddValueLoggable loggable) {
2272
2272
protected void undoAddValue (final AddValueLoggable loggable ) {
2273
2273
final DOMPage page = getDOMPage (loggable .pageNum );
2274
2274
final DOMFilePageHeader pageHeader = page .getPageHeader ();
2275
+
2276
+ // is there anything to undo?
2277
+ if (pageHeader .getLsn () == Lsn .LSN_INVALID || pageHeader .getStatus () == UNUSED ) {
2278
+ LOG .warn ("Nothing to undo, but received: AddValueLoggable(txnId=" + loggable .getTransactionId ()
2279
+ + ", lsn=" + loggable .getLsn () + ", pageNum=" + loggable .pageNum
2280
+ + ", isOverflow=" + loggable .isOverflow + ")" );
2281
+ return ;
2282
+ }
2283
+
2275
2284
final RecordPos pos = page .findRecord (ItemId .getId (loggable .tid ));
2276
2285
SanityCheck .ASSERT (pos != null , "Record not found! isOverflow: " + loggable .isOverflow );
2277
2286
//TODO : throw exception ? -pb
You can’t perform that action at this time.
0 commit comments