summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/SqlDB/SqlDB.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2013-09-03 15:42:19 +0200
committerBenoit Foucher <benoit@zeroc.com>2013-09-03 15:42:19 +0200
commit91f6ebb998532b36fc70187b641a5b7404060422 (patch)
treeac88e961c68e4b09eb819f4b57b9ecac56854567 /cpp/src/IceGrid/SqlDB/SqlDB.cpp
parentICE-5378 - Remove slice35d.dll from Windows installer (diff)
downloadice-91f6ebb998532b36fc70187b641a5b7404060422.tar.bz2
ice-91f6ebb998532b36fc70187b641a5b7404060422.tar.xz
ice-91f6ebb998532b36fc70187b641a5b7404060422.zip
Fixed ICE-5358 - allow IceGrid replica to initialize its database from another replica
Diffstat (limited to 'cpp/src/IceGrid/SqlDB/SqlDB.cpp')
-rw-r--r--cpp/src/IceGrid/SqlDB/SqlDB.cpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/cpp/src/IceGrid/SqlDB/SqlDB.cpp b/cpp/src/IceGrid/SqlDB/SqlDB.cpp
index 2d3b58c9a39..5afe9015af5 100644
--- a/cpp/src/IceGrid/SqlDB/SqlDB.cpp
+++ b/cpp/src/IceGrid/SqlDB/SqlDB.cpp
@@ -50,6 +50,18 @@ public:
SqlDB::Wrapper<SqlStringApplicationInfoDict, std::string, ApplicationInfo>(con, table)
{
}
+
+ virtual Ice::Long
+ updateSerial(Ice::Long serial)
+ {
+ return -1; // Serials not supported
+ }
+
+ virtual Ice::Long
+ getSerial() const
+ {
+ return -1; // Serials not supported
+ }
};
class SqlAdaptersWrapper : public SqlDB::Wrapper<SqlStringAdapterInfoDict, std::string, AdapterInfo>,
@@ -67,6 +79,18 @@ public:
{
return _table->findByReplicaGroupId(_connection, name);
}
+
+ virtual Ice::Long
+ updateSerial(Ice::Long serial)
+ {
+ return -1; // Serials not supported
+ }
+
+ virtual Ice::Long
+ getSerial() const
+ {
+ return -1; // Serials not supported
+ }
};
class SqlObjectsWrapper : public SqlDB::Wrapper<SqlIdentityObjectInfoDict, Ice::Identity, ObjectInfo>,
@@ -84,6 +108,18 @@ public:
{
return _table->findByType(_connection, type);
}
+
+ virtual Ice::Long
+ updateSerial(Ice::Long serial)
+ {
+ return -1; // Serials not supported
+ }
+
+ virtual Ice::Long
+ getSerial() const
+ {
+ return -1; // Serials not supported
+ }
};
}