MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / createLockFile

Method createLockFile

src/Backups/BackupImpl.cpp:648–657  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

646}
647
648void BackupImpl::createLockFile()
649{
650 /// Internal backup must not create the lock file (it should be created by the initiator).
651 chassert(!params.is_internal_backup);
652
653 chassert(uuid);
654 auto out = writer->writeFile(lock_file_name);
655 writeUUIDText(*uuid, *out);
656 out->finalize();
657}
658
659bool BackupImpl::checkLockFile(bool throw_if_failed) const
660{

Callers

nothing calls this directly

Calls 3

writeUUIDTextFunction · 0.85
writeFileMethod · 0.45
finalizeMethod · 0.45

Tested by

no test coverage detected