Creates a unique range transfer log pathname. More...
#include <TransferLog.h>
Public Member Functions | |
TransferLog (FilesystemPtr &fs, const string &toplevel_dir, const string &table_id, const string &end_row) | |
Constructor. More... | |
string & | name () |
Returns pathname of transfer log. More... | |
Private Attributes | |
string | m_logname |
Full path name of transfer log. More... | |
Creates a unique range transfer log pathname.
Definition at line 46 of file TransferLog.h.
|
inline |
Constructor.
Initializes m_logname with a new transfer log path with the following format:
<toplevel-dir>/tables/<table-id>/_xfer/<end-row-hash>_<timestamp>
Where the <end-row-hash> component is the base-64 MD5 hash of end_row
and <timestamp> is the current time in Epoch time.
fs | Pointer to filesystem |
toplevel_dir | Toplevel database directory in fs |
table_id | Table identifier of corresponding table |
end_row | End row of corresponding range |
Definition at line 62 of file TransferLog.h.
|
inline |
Returns pathname of transfer log.
Definition at line 80 of file TransferLog.h.
|
private |
Full path name of transfer log.
Definition at line 85 of file TransferLog.h.