MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / remove

Method remove

src/remote/server/ReplServer.cpp:535–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 2

replicateFunction · 0.45
process_archiveFunction · 0.45

Calls 3

raiseErrorFunction · 0.50
unlinkFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected