summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Outgoing.cpp
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2002-09-04 05:39:57 +0000
committerMichi Henning <michi@zeroc.com>2002-09-04 05:39:57 +0000
commita5da64185ba234ae8dfdec11764e1821bbc67a57 (patch)
tree4aa60640dbb0b01960e8aa644ef9179594e28b6d /cpp/src/Ice/Outgoing.cpp
parentfix (diff)
downloadice-a5da64185ba234ae8dfdec11764e1821bbc67a57.tar.bz2
ice-a5da64185ba234ae8dfdec11764e1821bbc67a57.tar.xz
ice-a5da64185ba234ae8dfdec11764e1821bbc67a57.zip
Changed Current.ice to use enum OperationMode to distinguish between
Normal, Nonmutating, and Idempotent operations. Fixed bug introduced into Freeze with previous changes for saving object state. (State wasn't saved for idempotent operations.) Retested everything. I'm getting a failure in the Yellow (C++) tests, and another failure in the IceBox (Java) tests, but I don't think these are related to these changes.
Diffstat (limited to 'cpp/src/Ice/Outgoing.cpp')
-rw-r--r--cpp/src/Ice/Outgoing.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/Ice/Outgoing.cpp b/cpp/src/Ice/Outgoing.cpp
index 46085df1879..e5f2dd52318 100644
--- a/cpp/src/Ice/Outgoing.cpp
+++ b/cpp/src/Ice/Outgoing.cpp
@@ -37,7 +37,7 @@ IceInternal::NonRepeatable::get() const
}
IceInternal::Outgoing::Outgoing(const ConnectionPtr& connection, const ReferencePtr& ref, const string& operation,
- bool idempotent, const Context& context) :
+ OperationMode mode, const Context& context) :
_connection(connection),
_reference(ref),
_state(StateUnsent),
@@ -65,7 +65,7 @@ IceInternal::Outgoing::Outgoing(const ConnectionPtr& connection, const Reference
_reference->identity.__write(&_os);
_os.write(_reference->facet);
_os.write(operation);
- _os.write(idempotent);
+ _os.write(static_cast<Byte>(mode));
_os.writeSize(Int(context.size()));
Context::const_iterator p;
for(p = context.begin(); p != context.end(); ++p)