| 533 | } |
| 534 | |
| 535 | void remove() |
| 536 | { |
| 537 | #ifdef PRESERVE_LOG |
| 538 | PathName path, name, newname; |
| 539 | PathUtils::splitLastComponent(path, name, filename); |
| 540 | PathUtils::concatPath(newname, path, "~" + name); |
| 541 | |
| 542 | if (rename(filename.c_str(), newname.c_str()) < 0) |
| 543 | raiseError("Journal file %s rename failed (error: %d)", filename.c_str(), ERRNO); |
| 544 | #else |
| 545 | if (unlink(filename.c_str()) < 0) |
| 546 | raiseError("Journal file %s unlink failed (error: %d)", filename.c_str(), ERRNO); |
| 547 | #endif |
| 548 | } |
| 549 | |
| 550 | static const FB_UINT64& generate(const Segment* item) |
| 551 | { |
no test coverage detected