summaryrefslogtreecommitdiff
path: root/server/src/client_connection.cc
diff options
context:
space:
mode:
authordeva <deva>2011-02-18 14:16:09 +0000
committerdeva <deva>2011-02-18 14:16:09 +0000
commitbb1c42800a2f48129100222317520b690f13c40e (patch)
tree16ac5d47d22c308f98f4e508b8bb4cfc8ae8ad16 /server/src/client_connection.cc
parent4a42852b13d84a283abe54ee569c6d1a8334fa09 (diff)
Made Session isreadonly property private and created new commitMacro method.
Diffstat (limited to 'server/src/client_connection.cc')
-rw-r--r--server/src/client_connection.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/client_connection.cc b/server/src/client_connection.cc
index 5aee707..9a1ac0f 100644
--- a/server/src/client_connection.cc
+++ b/server/src/client_connection.cc
@@ -75,7 +75,7 @@ ClientConnection::~ClientConnection()
void ClientConnection::nocommit(Session *session)
{
if(donocommit) {
- if(session->isreadonly) { // NoCommit of an empty session discards it.
+ if(session->isReadonly()) { // NoCommit of an empty session discards it.
dodiscard = true;
return;
}
@@ -89,7 +89,7 @@ void ClientConnection::nocommit(Session *session)
void ClientConnection::commit(Session *session)
{
if(docommit) {
- if(session->isreadonly) { // Commit of an empty session discards it.
+ if(session->isReadonly()) { // Commit of an empty session discards it.
dodiscard = true;
return;
}