summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch/IcePatchI.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2003-12-18 18:31:29 +0000
committerMarc Laukien <marc@zeroc.com>2003-12-18 18:31:29 +0000
commitbb9611cc3c7b932a5f28c0df82d5920509cdeebb (patch)
treee9e0ba271437e5b2a98b9ffcf47aae8fcc73bc8c /cpp/src/IcePatch/IcePatchI.cpp
parentfix (diff)
downloadice-bb9611cc3c7b932a5f28c0df82d5920509cdeebb.tar.bz2
ice-bb9611cc3c7b932a5f28c0df82d5920509cdeebb.tar.xz
ice-bb9611cc3c7b932a5f28c0df82d5920509cdeebb.zip
fix
Diffstat (limited to 'cpp/src/IcePatch/IcePatchI.cpp')
-rw-r--r--cpp/src/IcePatch/IcePatchI.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/cpp/src/IcePatch/IcePatchI.cpp b/cpp/src/IcePatch/IcePatchI.cpp
index 54a2fc768a6..3cc0a81eb9d 100644
--- a/cpp/src/IcePatch/IcePatchI.cpp
+++ b/cpp/src/IcePatch/IcePatchI.cpp
@@ -110,7 +110,12 @@ IcePatch::DirectoryI::describe(const Current& current) const
// No mutex lock necessary.
DirectoryDescPtr desc = new DirectoryDesc;
desc->md5 = readMD5(current);
- desc->dir = DirectoryPrx::uncheckedCast(_adapter->createProxy(current.id));
+
+ //
+ // We want compression for directories, to compress directory
+ // listings on the fly.
+ //
+ desc->dir = DirectoryPrx::uncheckedCast(_adapter->createProxy(current.id)->ice_compress(true));
return desc;
}
@@ -198,7 +203,13 @@ IcePatch::RegularI::describe(const Current& current) const
// No mutex lock necessary.
RegularDescPtr desc = new RegularDesc;
desc->md5 = readMD5(current);
- desc->reg = RegularPrx::uncheckedCast(_adapter->createProxy(current.id));
+
+ //
+ // We do not want compression for regular files, because we
+ // download pre-compressed files.
+ //
+ desc->reg = RegularPrx::uncheckedCast(_adapter->createProxy(current.id)->ice_compress(false));
+
return desc;
}