stasis-aries-wal/utilities/truncate_log.c
Sears Russell 1bfb634103 Preliminary benchmark program uploads for SEDA-style response time percentiles vs requests / second
Also added a few cute little utilities:
  - truncate_log
  - run_recovery

Upped max # of concurrent transactions.  (Current throughput during benchmarking remains ~flat up to 32,000
threads, but past max concurrent transactions was 1,000...)
2005-03-12 22:11:18 +00:00

14 lines
245 B
C

#include <lladd/transactional.h>
#include "../src/lladd/logger/logWriter.h"
int main(void) {
Tinit();
syncLog();
lsn_t trunc_to = flushedLSN();
Tdeinit();
openLogWriter();
truncateLog(trunc_to);
return compensation_error();
}