If true, acquire write locks instead of read locks when doing a read, if locking is configured.

Namespace:  BerkeleyDB
Assembly:  libdb_dotnet52 (in libdb_dotnet52.dll) Version:


public bool ReadModifyWrite
Visual Basic (Declaration)
Public ReadModifyWrite As Boolean
Visual C++
bool ReadModifyWrite


Setting ReadModifyWrite can eliminate deadlock during a read-modify-write cycle by acquiring the write lock during the read part of the cycle so that another thread of control acquiring a read lock for the same item, in its own read-modify-write cycle, will not result in deadlock.

See Also