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

Method Close

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

FlushFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected