Skip to content

Commit 3059846

Browse files
author
JkLondon
committed
Simplify MapFull error message and update variable name accordingly.
1 parent ba855c4 commit 3059846

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mdbx/error.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ var CorruptErrorHardwareRecommendations = "Maybe free space is over on disk. Oth
8484
var CorruptErrorBacktraceRecommendations = "Otherwise - please create issue in Application repo." // with backtrace or coredump. To create coredump set compile option 'MDBX_FORCE_ASSERTIONS=1' and env variable 'GOTRACEBACK=crash'."
8585
var CorruptErrorRecoveryRecommendations = "On default DURABLE mode, power outage can't cause this error. On other modes - power outage may break last transaction and mdbx_chk can recover db in this case, see '-t' and '-0|1|2' options."
8686
var CorruptErrorMessage = CorruptErrorHardwareRecommendations + " " + CorruptErrorBacktraceRecommendations + " " + CorruptErrorRecoveryRecommendations
87-
var MapFullErrorRecommendation = "The allocated database storage size limit has been reached. You can try increasing the storage capacity or remove the database files (e.g., by running rm -rf /path/to/db) only if the data is unused and safe to delete. Please proceed with caution!"
87+
var MapFullErrorMessage = "The allocated database storage size limit has been reached."
8888

8989
func (e Errno) Error() string {
9090
switch e {
@@ -93,7 +93,7 @@ func (e Errno) Error() string {
9393
case Panic:
9494
return fmt.Sprintf("MDBX_PANIC(%d): ", int(e)) + CorruptErrorMessage
9595
case MapFull:
96-
return fmt.Sprintf("MDBX_MAP_FULL(%d)", int(e)) + MapFullErrorRecommendation
96+
return fmt.Sprintf("MDBX_MAP_FULL(%d)", int(e)) + MapFullErrorMessage
9797
default:
9898
return C.GoString(C.mdbx_strerror(C.int(e)))
9999
}

0 commit comments

Comments
 (0)