From 83e303b0591d22729aa5bf97e4246b5831f7a989 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Sun, 19 Apr 2020 14:56:17 +0300 Subject: [PATCH] mdbx: alter MDBX_CURSOR_FULL description. Change-Id: I70d13e7503d10c6050bd17e4dd8bd814e46799af --- mdbx.h | 3 ++- src/core.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mdbx.h b/mdbx.h index acaca64c..3f14d2c1 100644 --- a/mdbx.h +++ b/mdbx.h @@ -1449,7 +1449,8 @@ typedef enum MDBX_cursor_op { /* Transaction has too many dirty pages, i.e transaction too big */ #define MDBX_TXN_FULL (-30788) -/* Cursor stack too deep - internal error */ +/* Cursor stack too deep - this usually indicates corruption, + * i.e branch-pages loop */ #define MDBX_CURSOR_FULL (-30787) /* Page has not enough space - internal error */ diff --git a/src/core.c b/src/core.c index 1c4b815e..a4d2a155 100644 --- a/src/core.c +++ b/src/core.c @@ -3180,7 +3180,8 @@ static const char *__mdbx_strerr(int errnum) { NULL /* MDBX_TLS_FULL (-30789): unused in MDBX */, "MDBX_TXN_FULL: Transaction has too many dirty pages," " i.e transaction is too big", - "MDBX_CURSOR_FULL: Internal error - Cursor stack limit reached", + "MDBX_CURSOR_FULL: Cursor stack limit reachedn - this usually indicates" + " corruption, i.e branch-pages loop", "MDBX_PAGE_FULL: Internal error - Page has no more space", "MDBX_UNABLE_EXTEND_MAPSIZE: Database engine was unable to extend" " mapping, e.g. since address space is unavailable or busy,"