diff options
| author | Julian Andres Klode <julian.klode@canonical.com> | 2025-02-17 16:23:05 +0100 |
|---|---|---|
| committer | Julian Andres Klode <julian.klode@canonical.com> | 2025-02-17 16:23:05 +0100 |
| commit | 591f178bce5713571d1874b863e9291a795cf5da (patch) | |
| tree | f87130cf3180b1b0ce9e573694d352fb74055910 /apt-pkg/edsp.cc | |
| parent | cf0ed0227fc9793d54494ec777a7e45bce5313c4 (diff) | |
edsp: Use buffered writes for EDSP dumps
This makes the dump almost instant rather than take forever.
Diffstat (limited to 'apt-pkg/edsp.cc')
| -rw-r--r-- | apt-pkg/edsp.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/edsp.cc b/apt-pkg/edsp.cc index bf96dd35c..6e02369c9 100644 --- a/apt-pkg/edsp.cc +++ b/apt-pkg/edsp.cc @@ -735,7 +735,7 @@ static bool CreateDumpFile(char const * const id, char const * const type, FileF auto const dumpdir = flNotFile(dumpfile); _error->PushToStack(); bool errored_out = CreateAPTDirectoryIfNeeded(dumpdir, dumpdir) == false || - output.Open(dumpfile, FileFd::WriteOnly | FileFd::Exclusive | FileFd::Create, FileFd::Extension, 0644) == false; + output.Open(dumpfile, FileFd::WriteOnly | FileFd::Exclusive | FileFd::Create | FileFd::BufferedWrite, FileFd::Extension, 0644) == false; std::vector<std::string> downgrademsgs; while (_error->empty() == false) { |
