int (*fn)(const char *key, const HashValue *val,
struct ht_forall_ctx *ctx),
struct ht_forall_ctx *ctx) {
- /* Returns first nonzero value returned by any call to fn, or 0. */
+ /* Returns first positive value returned by any call to fn, or 0.
+ * If fn returns -1, key is deleted. */
Tcl_HashSearch sp;
Tcl_HashEntry *he;
const char *key;
if (rw->logfile) {
r= fclose(rw->logfile);
- if (r && ip) { rc= cht_posixerr(ip, errno, "data loss! failed to"
+ if (r && ip) { rc= cht_posixerr(ip, errno, "probable data loss! failed to"
" fclose logfile during untidy close"); }
}
cdbmaking= 0;
r= fclose(rw->logfile);
- if (r) { rc= cht_posixerr(ip, errno, "data loss! failed to fclose"
+ if (r) { rc= cht_posixerr(ip, errno, "probable data loss! failed to fclose"
" logfile during compact"); goto x_rc; }
rw->logfile= 0;