Lines Matching refs:undo
158 BOOL optu; /* count of transaction sets to undo */
871 /* if there is undo data, offset must be >= 0x28 */
874 /* undo data and redo data should be contiguous when both present */
876 /* undo and redo data may be the same when both present and same size */
883 /* undo expected just after redo */
890 /* redo expected just after undo */
902 * undo and redo operations are null
1329 printf("undo fixup %dU %s attr 0x%x offs 0x%x\n",
1334 * When this is a redo (with a NoOp undo), the
1336 * When this is an undo (with DeallocateFileRecordSegment redo),
1767 printf(" * undo attr not shown\n");
1866 unsigned int undo;
1948 * 3) undo : undo (defined by undo_offset)
1949 * 4) extra : unknown data (end of undo to data_length)
1954 /* both undo and redo are present */
1958 undo = sizeof(LOG_RECORD) - 8
1961 redo = undo;
1963 redo = undo + ((le16_to_cpu(logr->undo_length) - 1) | 7) + 1;
1970 undo = redo + ((le16_to_cpu(logr->redo_length) - 1) | 7) + 1;
1971 extra = undo + ((le16_to_cpu(logr->undo_length) - 1) | 7) + 1;
1977 /* redo and not undo */
1978 redo = undo = sizeof(LOG_RECORD) - 8
1984 /* optional undo and not redo */
1985 redo = undo = sizeof(LOG_RECORD) - 8
1987 extra = undo + ((le16_to_cpu(logr->undo_length) - 1) | 7) + 1;
1990 printf("redo 0x%x (%u) undo 0x%x (%u) extra 0x%x (%d)\n",
1992 undo,(int)(((le16_to_cpu(logr->undo_length) - 1) | 7) + 1),
1999 if (logr->undo_length && (get_undo_offset(logr) != undo))
2000 printf("** Unexpected undo offset 0x%x %u (%u)\n",
2001 get_undo_offset(logr),(int)undo,
2039 /* show undo data */
2046 printf("undo data (old data) cluster 0x%llx pos 0x%x :\n",
2051 else printf("undo data (old data) at offs 0x%x :\n",undo);
2052 if ((u32)(undo + le16_to_cpu(logr->undo_length)) <= end)
2054 if ((undo + le16_to_cpu(logr->undo_length)) < 2*blocksz)
2057 + undo,le16_to_cpu(logr->undo_length));
2058 fixup(ctx, logr, (const char*)logr + undo, FALSE);
2060 else printf("undo data overflowing from two blocks\n");
2062 else printf("undo data overflowing from record\n");
2066 printf("no undo data (old data)\n");
2067 fixup(ctx, logr, (const char*)logr + undo, FALSE);
2090 && ((u32)(undo + le16_to_cpu(logr->undo_length)) > end))
2091 printf("* undo data overflows from record\n");
2205 " previous and undo %016llx\n",
2215 printf(" undo %016llx\n",
2511 * redo or undo).
2513 * could be needed. However never both undo and
4127 fprintf(stderr," -p : undo the latest count transaction sets and play one\n");
4131 fprintf(stderr," -u : undo the latest count transaction sets\n");
4159 { "undo", required_argument, NULL, 'u' },
4250 fprintf(stderr,"Bad undo count\n");