#include <Common/Compat.h>
#include "Config.h"
#include "Event.h"
#include "Notification.h"
#include "Master.h"
#include "Session.h"
#include "SessionData.h"
#include <Common/Thread.h>
#include <Common/Error.h>
#include <Common/Path.h>
#include <Common/FileUtils.h>
#include <Common/StringExt.h>
#include <Common/Random.h>
#include <Common/SystemInfo.h>
#include <boost/algorithm/string.hpp>
#include <boost/tokenizer.hpp>
#include <algorithm>
#include <cstring>
#include <sstream>
#include <dirent.h>
#include <fcntl.h>
#include <sys/file.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/xattr.h>
#include <unistd.h>
Go to the source code of this file.
#define HT_BDBTXN_BEGIN |
( |
|
parent_txn | ) |
|
Value:do { \
BDbTxn txn;\
std::stringstream txn_str;
\
m_bdb_fs->start_transaction(txn); \
try
Definition at line 66 of file Master.cc.
#define HT_BDBTXN_END |
( |
|
... | ) |
|
Value:
HT_INFOF(
"Berkeley DB deadlock encountered in txn %s", txn_str.str().c_str()); \
txn.abort(); \
this_thread::sleep_for(Random::duration_millis(3000)); \
continue; \
}\
HT_INFOF(
"Berkeley DB rep handle dead deadlock encountered in txn %s", txn_str.str().c_str()); \
txn.abort(); \
continue; \
}\
txn.abort(); \
return __VA_ARGS__; \
break; \
} while (true)
const char * get_text(int error)
Returns a descriptive error message.
#define HT_INFOF(msg,...)
This is a generic exception class for Hypertable.
#define HT_ERRORF(msg,...)
int code() const
Returns the error code.
Definition at line 101 of file Master.cc.
#define HT_BDBTXN_END_CB |
( |
|
_cb_ | ) |
|
Value:
HT_INFOF(
"Berkeley DB deadlock encountered in txn %s", txn_str.str().c_str()); \
txn.abort(); \
this_thread::sleep_for(Random::duration_millis(3000)); \
continue; \
}\
HT_INFOF(
"Berkeley DB rep handle dead deadlock encountered in txn %s", txn_str.str().c_str()); \
txn.abort(); \
continue; \
}\
txn.abort(); \
_cb_->error(e.
code(), e.what()); \
return; \
break; \
} while (true)
const char * get_text(int error)
Returns a descriptive error message.
#define HT_INFOF(msg,...)
This is a generic exception class for Hypertable.
#define HT_ERRORF(msg,...)
int code() const
Returns the error code.
Definition at line 74 of file Master.cc.