MCPcopy Create free account
hub / github.com/apache/arrow / Close

Method Close

cpp/src/arrow/filesystem/s3fs.cc:1844–1856  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1842 }
1843
1844 Status Close() override {
1845 if (closed_) return Status::OK();
1846
1847 RETURN_NOT_OK(CleanupIfFailed(EnsureReadyToFlushFromClose()));
1848
1849 RETURN_NOT_OK(CleanupIfFailed(Flush()));
1850
1851 if (IsMultipartCreated()) {
1852 RETURN_NOT_OK(CleanupIfFailed(FinishPartUploadAfterFlush()));
1853 }
1854
1855 return CleanupAfterClose();
1856 }
1857
1858 Future<> CloseAsync() override {
1859 if (closed_) return Status::OK();

Callers

nothing calls this directly

Calls 2

FlushFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected