#include <Common/Compat.h>
#include "HandleCallback.h"
#include "BerkeleyDbFilesystem.h"
#include <AsyncComm/CommBuf.h>
#include <Common/Random.h>
#include <Common/Serialization.h>
#include <Common/System.h>
#include <condition_variable>
#include <chrono>
#include <iostream>
#include <memory>
#include <mutex>
#include <string>
#include <thread>
Go to the source code of this file.
#define HT_BDBTXN_EVT_BEGIN |
( |
|
parent_txn | ) |
|
Value:do { \
BDbTxn txn; \
ms_bdb_fs->start_transaction(txn); \
try
Definition at line 44 of file Event.h.
#define HT_BDBTXN_EVT_END |
( |
|
... | ) |
|
Value:
txn.abort(); \
return __VA_ARGS__; \
txn.abort(); \
std::this_thread::sleep_for(Random::duration_millis(3000)); \
continue; \
} \
break; \
} while (true)
#define HT_WARNF(msg,...)
const char * get_text(int error)
Returns a descriptive error message.
This is a generic exception class for Hypertable.
int code() const
Returns the error code.
Definition at line 69 of file Event.h.
#define HT_BDBTXN_EVT_END_CB |
( |
|
_cb_ | ) |
|
Value:
txn.abort(); \
_cb_->error(e.
code(), e.what()); \
return; \
txn.abort(); \
std::this_thread::sleep_for(Random::duration_millis(3000)); \
continue; \
} \
break; \
} while (true)
#define HT_WARNF(msg,...)
const char * get_text(int error)
Returns a descriptive error message.
This is a generic exception class for Hypertable.
int code() const
Returns the error code.
Definition at line 50 of file Event.h.