41 #include <sys/types.h>
49 void fsbroker::FsTestThreadFunction::operator()() {
59 if (stat(m_input_file.c_str(), &statbuf) != 0)
61 + m_input_file +
"' - " + strerror(errno));
63 int64_t origsz = statbuf.st_size;
69 int64_t dfssz1 = m_client->length(m_dfs_file,
false);
70 int64_t dfssz2 = m_client->length(m_dfs_file,
true);
72 if (origsz != dfssz1) {
74 quick_exit(EXIT_FAILURE);
76 if (origsz != dfssz2) {
78 quick_exit(EXIT_FAILURE);
83 quick_exit(EXIT_FAILURE);
void copy_to_local(ClientPtr &client, const std::string &from, const std::string &to, int64_t offset=0)
Logging routines and macros.
Compatibility Macros for C/C++.
Declarations for FsTestThreadFunction.
long long int Lld
Shortcut for printf formats.
void copy_from_local(ClientPtr &client, const std::string &from, const std::string &to, int64_t offset=0)
This is a generic exception class for Hypertable.
#define HT_ERRORF(msg,...)
Declarations of utility functions.
Error codes, Exception handling, error logging.
#define HT_THROW(_code_, _msg_)