diff --git a/modules/global-db/dap_chain_global_db_driver_mdbx.c b/modules/global-db/dap_chain_global_db_driver_mdbx.c index bc66f39977ec864cb9158afd5f1dbf47432392ce..f088ea34195b769f94860ac6f94f67f665eba0d3 100644 --- a/modules/global-db/dap_chain_global_db_driver_mdbx.c +++ b/modules/global-db/dap_chain_global_db_driver_mdbx.c @@ -956,9 +956,11 @@ struct __record_suffix__ *l_suff; log_it (L_ERROR, "mdbx_dbi_stat: (%d) %s", l_rc2, mdbx_strerror(l_rc2)); break; } + else if ( !l_stat.ms_entries ) /* Nothing to retrieve , table contains no record */ + break; if ( !(l_count_out = min(l_stat.ms_entries, l_count_out)) ) { - log_it(L_WARNING, "No object (-s) to be rtreived from the group '%s'", a_group); + debug_if(s_dap_global_db_debug_more, L_WARNING, "No object (-s) to be retrieved from the group '%s'", a_group); break; }