Locking and errors (and deserialization) in inprocess-cache
From: Daniel Shahaf <danielsh_at_elego.de>
Date: Thu, 19 May 2011 17:01:15 +0200
In inprocess-cache.c the following pattern is common:
svn_error_t *inprocess_callback()
So, if an error occurs, then all future cache calls deadlock; and it's
Suggestions:
* Move to a with_cache_locked() callback paradigm, as already done in
* Alternatively, add SVN_ERR_ASSERT(cache->is_locked) to relevant
* If body() discovers a fatal error condition... well, we could just
* [ this is somewhat orthogonal ]
The cache passes through (unmodified) all errors from the
Thoughts?
Barring objections I'll look into implementing something that eliminates
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.