mdbx++: добавление забытого исключения mdbx::duplicated_lck_file.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2023-10-23 16:27:55 +03:00
parent e58b582639
commit 311a6e5d10
2 changed files with 3 additions and 1 deletions

View File

@ -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();

View File

@ -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())