diff options
author | Marc Laukien <marc@zeroc.com> | 2003-12-18 18:31:29 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2003-12-18 18:31:29 +0000 |
commit | bb9611cc3c7b932a5f28c0df82d5920509cdeebb (patch) | |
tree | e9e0ba271437e5b2a98b9ffcf47aae8fcc73bc8c /cpp/src/IcePatch/IcePatchI.cpp | |
parent | fix (diff) | |
download | ice-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.cpp | 15 |
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; } |