diff options
| author | Douglas Yung <douglas.yung@sony.com> | 2025-03-08 23:54:57 +0000 |
|---|---|---|
| committer | Douglas Yung <douglas.yung@sony.com> | 2025-03-08 23:54:57 +0000 |
| commit | 1d763f383380ec629ee6d5053fd41322efcbc6bd (patch) | |
| tree | b4f686ffb9b0db5234cbe2896f6190bc1532db36 /lldb/source/Core/DataFileCache.cpp | |
| parent | 0d209c6d905e3da7eae28e5f27c7f0ad33f60c91 (diff) | |
Revert "Modify the localCache API to require an explicit commit on CachedFile… (#115331)"
This reverts commit ce9e1d3c15ed6290f1cb07b482939976fa8115cd.
The unittest added in this commit seems to be flaky causing random failure on buildbots:
- https://lab.llvm.org/buildbot/#/builders/46/builds/13235
- https://lab.llvm.org/buildbot/#/builders/46/builds/13232
- https://lab.llvm.org/buildbot/#/builders/46/builds/13228
- https://lab.llvm.org/buildbot/#/builders/46/builds/13224
- https://lab.llvm.org/buildbot/#/builders/46/builds/13220
- https://lab.llvm.org/buildbot/#/builders/46/builds/13210
- https://lab.llvm.org/buildbot/#/builders/46/builds/13208
- https://lab.llvm.org/buildbot/#/builders/46/builds/13207
- https://lab.llvm.org/buildbot/#/builders/46/builds/13202
- https://lab.llvm.org/buildbot/#/builders/46/builds/13196
and
- https://lab.llvm.org/buildbot/#/builders/180/builds/14266
- https://lab.llvm.org/buildbot/#/builders/180/builds/14254
- https://lab.llvm.org/buildbot/#/builders/180/builds/14250
- https://lab.llvm.org/buildbot/#/builders/180/builds/14245
- https://lab.llvm.org/buildbot/#/builders/180/builds/14244
- https://lab.llvm.org/buildbot/#/builders/180/builds/14226
Diffstat (limited to 'lldb/source/Core/DataFileCache.cpp')
| -rw-r--r-- | lldb/source/Core/DataFileCache.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lldb/source/Core/DataFileCache.cpp b/lldb/source/Core/DataFileCache.cpp index 910926971123..ef0e07a8b034 100644 --- a/lldb/source/Core/DataFileCache.cpp +++ b/lldb/source/Core/DataFileCache.cpp @@ -132,11 +132,6 @@ bool DataFileCache::SetCachedData(llvm::StringRef key, if (file_or_err) { llvm::CachedFileStream *cfs = file_or_err->get(); cfs->OS->write((const char *)data.data(), data.size()); - if (llvm::Error err = cfs->commit()) { - Log *log = GetLog(LLDBLog::Modules); - LLDB_LOG_ERROR(log, std::move(err), - "failed to commit to the cache for key: {0}"); - } return true; } else { Log *log = GetLog(LLDBLog::Modules); |
