Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov committed Oct 18, 2024
1 parent 77c9c03 commit bd1cbb1
Show file tree
Hide file tree
Showing 20 changed files with 40 additions and 32 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
MASTER_COMMIT=`git rev-parse --short origin/master`

deps: lintci-deps
go get -d ./...
go get ./...

all: deps

Expand Down
17 changes: 10 additions & 7 deletions mdbx/mdbx.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#define xMDBX_ALLOY 1 /* alloyed build */

#define MDBX_BUILD_SOURCERY be1c8ae5abf4d763d126e385dfe4dd124539606917b893521bb6daa41631df33_v0_13_0_123_g77a35608
#define MDBX_BUILD_SOURCERY 4ef6bfc2012bedf4af0bcd644ec87ace207f395c5d5e103573649032ec2cb6e8_v0_13_1_0_g5fc7a6b1


#define LIBMDBX_INTERNALS
Expand Down Expand Up @@ -17603,12 +17603,14 @@ int dbi_bind(MDBX_txn *txn, const size_t dbi, unsigned user_flags,
} else if ((user_flags & MDBX_CREATE) == 0)
return /* FIXME: return extended info */ MDBX_INCOMPATIBLE;
else {
eASSERT(env, env->dbs_flags[dbi] & DB_VALID);
if (txn->dbi_state[dbi] & DBI_STALE) {
eASSERT(env, env->dbs_flags[dbi] & DB_VALID);
int err = tbl_fetch(txn, dbi);
if (unlikely(err == MDBX_SUCCESS))
return err;
}
eASSERT(env, ((env->dbs_flags[dbi] ^ txn->dbs[dbi].flags) &
DB_PERSISTENT_FLAGS) == 0);
eASSERT(env,
(txn->dbi_state[dbi] & (DBI_LINDO | DBI_VALID | DBI_STALE)) ==
(DBI_LINDO | DBI_VALID));
Expand All @@ -17619,7 +17621,7 @@ int dbi_bind(MDBX_txn *txn, const size_t dbi, unsigned user_flags,
if (unlikely(txn->cursors[dbi]))
return MDBX_DANGLING_DBI;
env->dbs_flags[dbi] = DB_POISON;
atomic_store32(&env->dbi_seqs[dbi], dbi_seq_next(env, MAIN_DBI),
atomic_store32(&env->dbi_seqs[dbi], dbi_seq_next(env, dbi),
mo_AcquireRelease);

const uint32_t seq = dbi_seq_next(env, dbi);
Expand Down Expand Up @@ -23690,7 +23692,8 @@ int gc_update(MDBX_txn *txn, gcu_t *ctx) {
MDBX_ENABLE_REFUND));
tASSERT(txn, dpl_check(txn));
if (unlikely(/* paranoia */ ctx->loop > ((MDBX_DEBUG > 0) ? 12 : 42))) {
ERROR("too more loops %u, bailout", ctx->loop);
ERROR("txn #%" PRIaTXN " too more loops %u, bailout", txn->txnid,
ctx->loop);
rc = MDBX_PROBLEM;
goto bailout;
}
Expand Down Expand Up @@ -40495,10 +40498,10 @@ __dll_export
const struct MDBX_version_info mdbx_version = {
0,
13,
1,
0,
123,
{"2024-08-13T23:17:19+03:00", "b3f1f0a857e023f4f120a468518e229ffae370e5", "77a35608f6139d4ea2d872371631e796dd65334d",
"v0.13.0-123-g77a35608"},
{"2024-08-30T00:01:07+03:00", "4ad05c5f867a963162def46b68eff5f7130b81ca", "5fc7a6b1077794789b97bb2a56f5a4eb541a0bc0",
"v0.13.1-0-g5fc7a6b1"},
sourcery};

__dll_export
Expand Down
2 changes: 1 addition & 1 deletion mdbx/mdbx.h
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ typedef mode_t mdbx_mode_t;
} \
MDBX_NOSANITIZE_ENUM MDBX_CXX01_CONSTEXPR ENUM operator&(unsigned a, \
ENUM b) { \
return ENUM(a &unsigned(b)); \
return ENUM(a & unsigned(b)); \
} \
MDBX_NOSANITIZE_ENUM MDBX_CXX14_CONSTEXPR ENUM &operator&=(ENUM &a, \
ENUM b) { \
Expand Down
4 changes: 3 additions & 1 deletion mdbxdist/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ChangeLog
English version [by liar Google](https://gitflic-ru.translate.goog/project/erthink/libmdbx/blob?file=ChangeLog.md&_x_tr_sl=ru&_x_tr_tl=en)
and [by Yandex](https://translated.turbopages.org/proxy_u/ru-en.en/https/gitflic.ru/project/erthink/libmdbx/blob?file=ChangeLog.md).

## v0.13.1 (в процессе подготовки выпуска)
## v0.13.1 "РДС-1" от 2024-08-29

Новая версия со сменой лицензии, существенным расширением API,
добавлением функционала и внутренними переработками. В том числе,
Expand Down Expand Up @@ -153,6 +153,8 @@ and [by Yandex](https://translated.turbopages.org/proxy_u/ru-en.en/https/gitflic
изменения геометрии другим процессом с увеличением верхнего размера БД
и увеличением БД больше предыдущего лимита.

- Исправление assert-проверки при попытке создания таблицы с другими флагами/опциями.

Мелочи:

- Обновление конфигурации Doxygen до 1.9.6.
Expand Down
2 changes: 1 addition & 1 deletion mdbxdist/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.13.0.123
0.13.1.0
2 changes: 1 addition & 1 deletion mdbxdist/man1/mdbx_chk.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Copyright 2015-2024 Leonid Yuriev <[email protected]>.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.TH MDBX_CHK 1 "2024-03-21" "MDBX 0.13"
.TH MDBX_CHK 1 "2024-08-29" "MDBX 0.13"
.SH NAME
mdbx_chk \- MDBX checking tool
.SH SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion mdbxdist/man1/mdbx_copy.1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.\" Copyright 2015,2016 Peter-Service R&D LLC <http://billing.ru/>.
.\" Copyright 2012-2015 Howard Chu, Symas Corp. All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.TH MDBX_COPY 1 "2024-03-21" "MDBX 0.13"
.TH MDBX_COPY 1 "2024-08-29" "MDBX 0.13"
.SH NAME
mdbx_copy \- MDBX environment copy tool
.SH SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion mdbxdist/man1/mdbx_drop.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" Copyright 2021-2024 Leonid Yuriev <[email protected]>.
.\" Copyright 2014-2021 Howard Chu, Symas Corp. All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.TH MDBX_DROP 1 "2024-03-21" "MDBX 0.13"
.TH MDBX_DROP 1 "2024-08-29" "MDBX 0.13"
.SH NAME
mdbx_drop \- MDBX database delete tool
.SH SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion mdbxdist/man1/mdbx_dump.1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.\" Copyright 2015,2016 Peter-Service R&D LLC <http://billing.ru/>.
.\" Copyright 2014-2015 Howard Chu, Symas Corp. All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.TH MDBX_DUMP 1 "2024-03-21" "MDBX 0.13"
.TH MDBX_DUMP 1 "2024-08-29" "MDBX 0.13"
.SH NAME
mdbx_dump \- MDBX environment export tool
.SH SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion mdbxdist/man1/mdbx_load.1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.\" Copyright 2015,2016 Peter-Service R&D LLC <http://billing.ru/>.
.\" Copyright 2014-2015 Howard Chu, Symas Corp. All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.TH MDBX_LOAD 1 "2024-03-21" "MDBX 0.13"
.TH MDBX_LOAD 1 "2024-08-29" "MDBX 0.13"
.SH NAME
mdbx_load \- MDBX environment import tool
.SH SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion mdbxdist/man1/mdbx_stat.1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.\" Copyright 2015,2016 Peter-Service R&D LLC <http://billing.ru/>.
.\" Copyright 2012-2015 Howard Chu, Symas Corp. All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.TH MDBX_STAT 1 "2024-03-21" "MDBX 0.13"
.TH MDBX_STAT 1 "2024-08-29" "MDBX 0.13"
.SH NAME
mdbx_stat \- MDBX environment status tool
.SH SYNOPSIS
Expand Down
17 changes: 10 additions & 7 deletions mdbxdist/mdbx.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#define xMDBX_ALLOY 1 /* alloyed build */

#define MDBX_BUILD_SOURCERY be1c8ae5abf4d763d126e385dfe4dd124539606917b893521bb6daa41631df33_v0_13_0_123_g77a35608
#define MDBX_BUILD_SOURCERY 4ef6bfc2012bedf4af0bcd644ec87ace207f395c5d5e103573649032ec2cb6e8_v0_13_1_0_g5fc7a6b1


#define LIBMDBX_INTERNALS
Expand Down Expand Up @@ -17603,12 +17603,14 @@ int dbi_bind(MDBX_txn *txn, const size_t dbi, unsigned user_flags,
} else if ((user_flags & MDBX_CREATE) == 0)
return /* FIXME: return extended info */ MDBX_INCOMPATIBLE;
else {
eASSERT(env, env->dbs_flags[dbi] & DB_VALID);
if (txn->dbi_state[dbi] & DBI_STALE) {
eASSERT(env, env->dbs_flags[dbi] & DB_VALID);
int err = tbl_fetch(txn, dbi);
if (unlikely(err == MDBX_SUCCESS))
return err;
}
eASSERT(env, ((env->dbs_flags[dbi] ^ txn->dbs[dbi].flags) &
DB_PERSISTENT_FLAGS) == 0);
eASSERT(env,
(txn->dbi_state[dbi] & (DBI_LINDO | DBI_VALID | DBI_STALE)) ==
(DBI_LINDO | DBI_VALID));
Expand All @@ -17619,7 +17621,7 @@ int dbi_bind(MDBX_txn *txn, const size_t dbi, unsigned user_flags,
if (unlikely(txn->cursors[dbi]))
return MDBX_DANGLING_DBI;
env->dbs_flags[dbi] = DB_POISON;
atomic_store32(&env->dbi_seqs[dbi], dbi_seq_next(env, MAIN_DBI),
atomic_store32(&env->dbi_seqs[dbi], dbi_seq_next(env, dbi),
mo_AcquireRelease);

const uint32_t seq = dbi_seq_next(env, dbi);
Expand Down Expand Up @@ -23690,7 +23692,8 @@ int gc_update(MDBX_txn *txn, gcu_t *ctx) {
MDBX_ENABLE_REFUND));
tASSERT(txn, dpl_check(txn));
if (unlikely(/* paranoia */ ctx->loop > ((MDBX_DEBUG > 0) ? 12 : 42))) {
ERROR("too more loops %u, bailout", ctx->loop);
ERROR("txn #%" PRIaTXN " too more loops %u, bailout", txn->txnid,
ctx->loop);
rc = MDBX_PROBLEM;
goto bailout;
}
Expand Down Expand Up @@ -40495,10 +40498,10 @@ __dll_export
const struct MDBX_version_info mdbx_version = {
0,
13,
1,
0,
123,
{"2024-08-13T23:17:19+03:00", "b3f1f0a857e023f4f120a468518e229ffae370e5", "77a35608f6139d4ea2d872371631e796dd65334d",
"v0.13.0-123-g77a35608"},
{"2024-08-30T00:01:07+03:00", "4ad05c5f867a963162def46b68eff5f7130b81ca", "5fc7a6b1077794789b97bb2a56f5a4eb541a0bc0",
"v0.13.1-0-g5fc7a6b1"},
sourcery};

__dll_export
Expand Down
2 changes: 1 addition & 1 deletion mdbxdist/mdbx.c++
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/// \author Леонид Юрьев aka Leonid Yuriev <[email protected]> \date 2015-2024


#define MDBX_BUILD_SOURCERY be1c8ae5abf4d763d126e385dfe4dd124539606917b893521bb6daa41631df33_v0_13_0_123_g77a35608
#define MDBX_BUILD_SOURCERY 4ef6bfc2012bedf4af0bcd644ec87ace207f395c5d5e103573649032ec2cb6e8_v0_13_1_0_g5fc7a6b1


#define LIBMDBX_INTERNALS
Expand Down
2 changes: 1 addition & 1 deletion mdbxdist/mdbx.h
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ typedef mode_t mdbx_mode_t;
} \
MDBX_NOSANITIZE_ENUM MDBX_CXX01_CONSTEXPR ENUM operator&(unsigned a, \
ENUM b) { \
return ENUM(a &unsigned(b)); \
return ENUM(a & unsigned(b)); \
} \
MDBX_NOSANITIZE_ENUM MDBX_CXX14_CONSTEXPR ENUM &operator&=(ENUM &a, \
ENUM b) { \
Expand Down
2 changes: 1 addition & 1 deletion mdbxdist/mdbx_chk.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/// \author Леонид Юрьев aka Leonid Yuriev <[email protected]> \date 2015-2024


#define MDBX_BUILD_SOURCERY be1c8ae5abf4d763d126e385dfe4dd124539606917b893521bb6daa41631df33_v0_13_0_123_g77a35608
#define MDBX_BUILD_SOURCERY 4ef6bfc2012bedf4af0bcd644ec87ace207f395c5d5e103573649032ec2cb6e8_v0_13_1_0_g5fc7a6b1


#define LIBMDBX_INTERNALS
Expand Down
2 changes: 1 addition & 1 deletion mdbxdist/mdbx_copy.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/// \author Леонид Юрьев aka Leonid Yuriev <[email protected]> \date 2015-2024


#define MDBX_BUILD_SOURCERY be1c8ae5abf4d763d126e385dfe4dd124539606917b893521bb6daa41631df33_v0_13_0_123_g77a35608
#define MDBX_BUILD_SOURCERY 4ef6bfc2012bedf4af0bcd644ec87ace207f395c5d5e103573649032ec2cb6e8_v0_13_1_0_g5fc7a6b1


#define LIBMDBX_INTERNALS
Expand Down
2 changes: 1 addition & 1 deletion mdbxdist/mdbx_drop.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/// \author Леонид Юрьев aka Leonid Yuriev <[email protected]> \date 2015-2024


#define MDBX_BUILD_SOURCERY be1c8ae5abf4d763d126e385dfe4dd124539606917b893521bb6daa41631df33_v0_13_0_123_g77a35608
#define MDBX_BUILD_SOURCERY 4ef6bfc2012bedf4af0bcd644ec87ace207f395c5d5e103573649032ec2cb6e8_v0_13_1_0_g5fc7a6b1


#define LIBMDBX_INTERNALS
Expand Down
2 changes: 1 addition & 1 deletion mdbxdist/mdbx_dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/// \author Леонид Юрьев aka Leonid Yuriev <[email protected]> \date 2015-2024


#define MDBX_BUILD_SOURCERY be1c8ae5abf4d763d126e385dfe4dd124539606917b893521bb6daa41631df33_v0_13_0_123_g77a35608
#define MDBX_BUILD_SOURCERY 4ef6bfc2012bedf4af0bcd644ec87ace207f395c5d5e103573649032ec2cb6e8_v0_13_1_0_g5fc7a6b1


#define LIBMDBX_INTERNALS
Expand Down
2 changes: 1 addition & 1 deletion mdbxdist/mdbx_load.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/// \author Леонид Юрьев aka Leonid Yuriev <[email protected]> \date 2015-2024


#define MDBX_BUILD_SOURCERY be1c8ae5abf4d763d126e385dfe4dd124539606917b893521bb6daa41631df33_v0_13_0_123_g77a35608
#define MDBX_BUILD_SOURCERY 4ef6bfc2012bedf4af0bcd644ec87ace207f395c5d5e103573649032ec2cb6e8_v0_13_1_0_g5fc7a6b1


#define LIBMDBX_INTERNALS
Expand Down
2 changes: 1 addition & 1 deletion mdbxdist/mdbx_stat.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/// \author Леонид Юрьев aka Leonid Yuriev <[email protected]> \date 2015-2024


#define MDBX_BUILD_SOURCERY be1c8ae5abf4d763d126e385dfe4dd124539606917b893521bb6daa41631df33_v0_13_0_123_g77a35608
#define MDBX_BUILD_SOURCERY 4ef6bfc2012bedf4af0bcd644ec87ace207f395c5d5e103573649032ec2cb6e8_v0_13_1_0_g5fc7a6b1


#define LIBMDBX_INTERNALS
Expand Down

0 comments on commit bd1cbb1

Please sign in to comment.