mirror of
https://github.com/isar/libmdbx.git
synced 2024-10-30 11:29:19 +08:00
mdbx++: добавление забытого исключения mdbx::duplicated_lck_file
.
This commit is contained in:
parent
e58b582639
commit
311a6e5d10
1
mdbx.h++
1
mdbx.h++
@ -558,6 +558,7 @@ MDBX_DECLARE_EXCEPTION(something_busy);
|
|||||||
MDBX_DECLARE_EXCEPTION(thread_mismatch);
|
MDBX_DECLARE_EXCEPTION(thread_mismatch);
|
||||||
MDBX_DECLARE_EXCEPTION(transaction_full);
|
MDBX_DECLARE_EXCEPTION(transaction_full);
|
||||||
MDBX_DECLARE_EXCEPTION(transaction_overlapping);
|
MDBX_DECLARE_EXCEPTION(transaction_overlapping);
|
||||||
|
MDBX_DECLARE_EXCEPTION(duplicated_lck_file);
|
||||||
#undef MDBX_DECLARE_EXCEPTION
|
#undef MDBX_DECLARE_EXCEPTION
|
||||||
|
|
||||||
[[noreturn]] LIBMDBX_API void throw_too_small_target_buffer();
|
[[noreturn]] LIBMDBX_API void throw_too_small_target_buffer();
|
||||||
|
@ -285,7 +285,7 @@ DEFINE_EXCEPTION(something_busy)
|
|||||||
DEFINE_EXCEPTION(thread_mismatch)
|
DEFINE_EXCEPTION(thread_mismatch)
|
||||||
DEFINE_EXCEPTION(transaction_full)
|
DEFINE_EXCEPTION(transaction_full)
|
||||||
DEFINE_EXCEPTION(transaction_overlapping)
|
DEFINE_EXCEPTION(transaction_overlapping)
|
||||||
|
DEFINE_EXCEPTION(duplicated_lck_file)
|
||||||
#undef DEFINE_EXCEPTION
|
#undef DEFINE_EXCEPTION
|
||||||
|
|
||||||
__cold const char *error::what() const noexcept {
|
__cold const char *error::what() const noexcept {
|
||||||
@ -371,6 +371,7 @@ __cold void error::throw_exception() const {
|
|||||||
CASE_EXCEPTION(thread_mismatch, MDBX_THREAD_MISMATCH);
|
CASE_EXCEPTION(thread_mismatch, MDBX_THREAD_MISMATCH);
|
||||||
CASE_EXCEPTION(transaction_full, MDBX_TXN_FULL);
|
CASE_EXCEPTION(transaction_full, MDBX_TXN_FULL);
|
||||||
CASE_EXCEPTION(transaction_overlapping, MDBX_TXN_OVERLAPPING);
|
CASE_EXCEPTION(transaction_overlapping, MDBX_TXN_OVERLAPPING);
|
||||||
|
CASE_EXCEPTION(duplicated_lck_file, MDBX_DUPLICATED_CLK);
|
||||||
#undef CASE_EXCEPTION
|
#undef CASE_EXCEPTION
|
||||||
default:
|
default:
|
||||||
if (is_mdbx_error())
|
if (is_mdbx_error())
|
||||||
|
Loading…
Reference in New Issue
Block a user