summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2002-09-25 21:14:45 +0000
committerBenoit Foucher <benoit@zeroc.com>2002-09-25 21:14:45 +0000
commit8acb1f10772f1175e107ffb2fbd12f84c4674632 (patch)
treead084d025e334f2387604d9e103248d3ce42c460 /cpp/src
parentWork around for servant locator deactivation problem. (diff)
downloadice-8acb1f10772f1175e107ffb2fbd12f84c4674632.tar.bz2
ice-8acb1f10772f1175e107ffb2fbd12f84c4674632.tar.xz
ice-8acb1f10772f1175e107ffb2fbd12f84c4674632.zip
Work around for servant locator deactivation problem
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Freeze/EvictorI.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/cpp/src/Freeze/EvictorI.cpp b/cpp/src/Freeze/EvictorI.cpp
index 849d152fafb..553ff4e905d 100644
--- a/cpp/src/Freeze/EvictorI.cpp
+++ b/cpp/src/Freeze/EvictorI.cpp
@@ -210,10 +210,14 @@ Freeze::EvictorI::locate(const Current& current, LocalObjectPtr& cookie)
assert(_db);
//
- // If this operation is called on a deactivated servant locator,
- // it's a bug in Ice.
+ // TODO: HACK: It's possible that locate is called on a
+ // deactivated servant locator. There's currently no nice way to
+ // handle this case so we just through an UnknownLocatoException.
//
- assert(!_deactivated);
+ if(_deactivated)
+ {
+ throw Ice::UnknownLocalException(__FILE__, __LINE__);
+ }
EvictorElementPtr element;