summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/ReplicaSessionI.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2008-03-12 17:56:56 +0100
committerBenoit Foucher <benoit@zeroc.com>2008-03-12 17:56:56 +0100
commitddf655a37d5d62a3b89adbf4d7ad9d23da65756c (patch)
tree0930dab75fd5b5153ddfde972d5d7a946ef55541 /cpp/src/IceGrid/ReplicaSessionI.cpp
parentSLES fixes (diff)
downloadice-ddf655a37d5d62a3b89adbf4d7ad9d23da65756c.tar.bz2
ice-ddf655a37d5d62a3b89adbf4d7ad9d23da65756c.tar.xz
ice-ddf655a37d5d62a3b89adbf4d7ad9d23da65756c.zip
Fixed bug 2738
Diffstat (limited to 'cpp/src/IceGrid/ReplicaSessionI.cpp')
-rw-r--r--cpp/src/IceGrid/ReplicaSessionI.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/cpp/src/IceGrid/ReplicaSessionI.cpp b/cpp/src/IceGrid/ReplicaSessionI.cpp
index 8e51f9561a4..c14855168ad 100644
--- a/cpp/src/IceGrid/ReplicaSessionI.cpp
+++ b/cpp/src/IceGrid/ReplicaSessionI.cpp
@@ -97,6 +97,15 @@ ReplicaSessionI::getTimeout(const Ice::Current& current) const
void
ReplicaSessionI::setDatabaseObserver(const DatabaseObserverPrx& observer, const Ice::Current& current)
{
+ //
+ // If it's a read only master, we don't setup the observer to not
+ // modify the replica database.
+ //
+ if(_database->isReadOnly())
+ {
+ return;
+ }
+
int serialApplicationObserver;
int serialAdapterObserver;
int serialObjectObserver;