Documentation
¶
Index ¶
- func CopyFile(src, dst string, fsync bool) (int64, error)
- func CreateDirs(dirs ...string) error
- func FirstExistingFile(filepaths ...string) string
- func GetLSNFromDeltaFilename(filename string) (dbutils.LSN, error)
- func Retry(fn func() (bool, error), numberOfAttempts int, ...) error
- func SyncFileAndDirectory(fp *os.File) error
- func TableDir(oid dbutils.OID) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDirs ¶
func FirstExistingFile ¶
func Retry ¶
func Retry(fn func() (bool, error), numberOfAttempts int, timeBetweenAttempts time.Duration, totalTimeout time.Duration) error
Retry retries a given function until either it returns true, which indicates success, or the number of attempts reach the limit, or the global timeout is reached. The cool-off period between attempts is passed as well. The cancellation should generally be handled outside of either this function. In other words, if total time is set to a significantly large value, there should be an external mechanism to terminate the routine to be retried with an error.
func SyncFileAndDirectory ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.