diff options
author | Bernard Normier <bernard@zeroc.com> | 2004-01-29 22:20:30 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2004-01-29 22:20:30 +0000 |
commit | 50cabef529b99aca61d33d54285adad30a09ae78 (patch) | |
tree | f706ae69199e5f0fb496aa020cc05a70c8d85988 /cpp/src/Freeze/MapI.cpp | |
parent | Halt JVM when saving thread dies (diff) | |
download | ice-50cabef529b99aca61d33d54285adad30a09ae78.tar.bz2 ice-50cabef529b99aca61d33d54285adad30a09ae78.tar.xz ice-50cabef529b99aca61d33d54285adad30a09ae78.zip |
Deadlock warnings, dead facet removal
Diffstat (limited to 'cpp/src/Freeze/MapI.cpp')
-rw-r--r-- | cpp/src/Freeze/MapI.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/cpp/src/Freeze/MapI.cpp b/cpp/src/Freeze/MapI.cpp index b108b6c1b7c..0ce27824a86 100644 --- a/cpp/src/Freeze/MapI.cpp +++ b/cpp/src/Freeze/MapI.cpp @@ -698,6 +698,13 @@ Freeze::MapHelperI::find(const Key& k, bool readOnly) const } else { + if(_connection->deadlockWarning()) + { + Warning out(_connection->communicator()->getLogger()); + out << "Deadlock in Freeze::MapHelperI::find on Map \"" + << _dbName << "\"; retrying ..."; + } + // // Ignored, try again // @@ -749,6 +756,13 @@ Freeze::MapHelperI::put(const Key& key, const Value& value) } else { + if(_connection->deadlockWarning()) + { + Warning out(_connection->communicator()->getLogger()); + out << "Deadlock in Freeze::MapHelperI::put on Map \"" + << _dbName << "\"; retrying ..."; + } + // // Ignored, try again // @@ -805,6 +819,13 @@ Freeze::MapHelperI::erase(const Key& key) } else { + if(_connection->deadlockWarning()) + { + Warning out(_connection->communicator()->getLogger()); + out << "Deadlock in Freeze::MapHelperI::erase on Map \"" + << _dbName << "\"; retrying ..."; + } + // // Ignored, try again // @@ -861,6 +882,13 @@ Freeze::MapHelperI::count(const Key& key) const } else { + if(_connection->deadlockWarning()) + { + Warning out(_connection->communicator()->getLogger()); + out << "Deadlock in Freeze::MapHelperI::count on Map \"" + << _dbName << "\"; retrying ..."; + } + // // Ignored, try again // @@ -904,6 +932,13 @@ Freeze::MapHelperI::clear() } else { + if(_connection->deadlockWarning()) + { + Warning out(_connection->communicator()->getLogger()); + out << "Deadlock in Freeze::MapHelperI::clear on Map \"" + << _dbName << "\"; retrying ..."; + } + // // Ignored, try again // |