1<!--$Id: eagain.so,v 11.6 2001/07/10 13:16:34 bostic Exp $--> 2<!--Copyright (c) 1997,2008 Oracle. All rights reserved.--> 3<!--See the file LICENSE for redistribution information.--> 4<html> 5<head> 6<title>Berkeley DB Reference Guide: Release 3.0: EAGAIN</title> 7<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> 8<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++"> 9</head> 10<body bgcolor=white> 11<table width="100%"><tr valign=top> 12<td><b><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></b></td> 13<td align=right><a href="../upgrade.3.0/lock_notheld.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../upgrade.3.0/eacces.html"><img src="../../images/next.gif" alt="Next"></a> 14</td></tr></table> 15<p align=center><b>Release 3.0: EAGAIN</b></p> 16<p>Historically, the Berkeley DB interfaces have returned the POSIX error value 17EAGAIN to indicate a deadlock. This has been removed from the Berkeley DB 3.0 18release in order to make it possible for applications to distinguish 19between EAGAIN errors returned by the system and returns from Berkeley DB 20indicating deadlock.</p> 21<p>The application should be searched for any occurrences of EAGAIN. For 22each of these, any that are checking for a deadlock return from Berkeley DB 23should be changed to check for the DB_LOCK_DEADLOCK return value.</p> 24<p>If, for any reason, this is a difficult change for the application to 25make, the <b>include/db.src</b> distribution file should be modified to 26translate all returns of DB_LOCK_DEADLOCK to EAGAIN. Search for the 27string EAGAIN in that file, there is a comment that describes how to make 28the change.</p> 29<table width="100%"><tr><td><br></td><td align=right><a href="../upgrade.3.0/lock_notheld.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../upgrade.3.0/eacces.html"><img src="../../images/next.gif" alt="Next"></a> 30</td></tr></table> 31<p><font size=1>Copyright (c) 1996,2008 Oracle. All rights reserved.</font> 32</body> 33</html> 34