diff options
author | Mark Spruiell <mes@zeroc.com> | 2010-01-05 20:17:33 -0800 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2010-01-05 20:17:33 -0800 |
commit | cf24e681e8c52cd20d81fe750ff258e67ee65734 (patch) | |
tree | 8411820ce3a257272d6ffa0d3dcdab9ce106609a /cpp/demo/book/map_filesystem/FilesystemI.cpp | |
parent | Fixed bug 4576 - add NPTL options only on Rhel4 (diff) | |
download | ice-cf24e681e8c52cd20d81fe750ff258e67ee65734.tar.bz2 ice-cf24e681e8c52cd20d81fe750ff258e67ee65734.tar.xz ice-cf24e681e8c52cd20d81fe750ff258e67ee65734.zip |
bug 4495 - clean up book demos
Diffstat (limited to 'cpp/demo/book/map_filesystem/FilesystemI.cpp')
-rw-r--r-- | cpp/demo/book/map_filesystem/FilesystemI.cpp | 8 |
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. // |