summaryrefslogtreecommitdiff
path: root/cpp/demo/book/map_filesystem/FilesystemI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/book/map_filesystem/FilesystemI.cpp')
-rw-r--r--cpp/demo/book/map_filesystem/FilesystemI.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/cpp/demo/book/map_filesystem/FilesystemI.cpp b/cpp/demo/book/map_filesystem/FilesystemI.cpp
index f37dcf8fdd7..d9ee20a6b55 100644
--- a/cpp/demo/book/map_filesystem/FilesystemI.cpp
+++ b/cpp/demo/book/map_filesystem/FilesystemI.cpp
@@ -120,6 +120,7 @@ FileI::destroy(const Ice::Current& c)
{
try
{
+ //
// The transaction is necessary since we are altering two
// records in one atomic action.
//
@@ -178,6 +179,7 @@ DirectoryI::DirectoryI(const Ice::CommunicatorPtr& communicator, const string& e
const Freeze::ConnectionPtr connection = Freeze::createConnection(_communicator, _envName);
IdentityDirectoryEntryMap dirDB(connection, directoriesDB());
+ //
// Create the record for the root directory if necessary.
//
for(;;)
@@ -250,8 +252,7 @@ DirectoryI::list(const Ice::Current& c)
throw Ice::ObjectNotExistException(__FILE__, __LINE__);
}
NodeDescSeq result;
- for(StringNodeDescDict::const_iterator q = p->second.nodes.begin();
- q != p->second.nodes.end(); ++q)
+ for(StringNodeDescDict::const_iterator q = p->second.nodes.begin(); q != p->second.nodes.end(); ++q)
{
result.push_back(q->second);
}
@@ -311,6 +312,7 @@ DirectoryI::createDirectory(const string& name, const Ice::Current& c)
{
try
{
+ //
// The transaction is necessary since we are altering two
// records in one atomic action.
//
@@ -371,6 +373,7 @@ DirectoryI::createFile(const string& name, const Ice::Current& c)
{
try
{
+ //
// The transaction is necessary since we are altering two
// records in one atomic action.
//
@@ -431,6 +434,7 @@ DirectoryI::destroy(const Ice::Current& c)
{
try
{
+ //
// The transaction is necessary since we are altering two
// records in one atomic action.
//