Просмотр исходного кода

call flush on the wrapped writebuffered FileFd

The flush call is a no-op in most FileFd implementations so this isn't
as critical as it might sound as the only non-trivial implementation is
in the buffered writer, which tends not be used to buffer another
buffer…
David Kalnischkies лет назад: 10
Родитель
Сommit
8ca481e841
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      apt-pkg/contrib/fileutl.cc

+ 1 - 2
apt-pkg/contrib/fileutl.cc

@@ -1277,9 +1277,8 @@ public:
 
 
 	 writebuffer.bufferstart += written;
 	 writebuffer.bufferstart += written;
       }
       }
-
       writebuffer.reset();
       writebuffer.reset();
-      return true;
+      return wrapped->InternalFlush();
    }
    }
    virtual ssize_t InternalWrite(void const * const From, unsigned long long const Size) APT_OVERRIDE
    virtual ssize_t InternalWrite(void const * const From, unsigned long long const Size) APT_OVERRIDE
    {
    {