From: Rusty Russell Date: Wed, 31 Aug 2011 05:55:16 +0000 (+0930) Subject: tdb2: suppress tdb1 backend logging when locking returns EINTR or EAGAIN X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=a391b2b900bc6d5c0467869a454bdb5c51b5a3be;hp=a391b2b900bc6d5c0467869a454bdb5c51b5a3be;ds=inline tdb2: suppress tdb1 backend logging when locking returns EINTR or EAGAIN The TDB1 code logs multiple times on errors; we must prevent that in the limited case where locking fails. With TDB2, this can happen due to the lock function attribute, where the user supplies replacement locking functions which are allowed to return with errno EAGAIN or EINTR for various special-effects. Flooding the logs for this is unfriendly. ---