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

Method Close

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

Source from the content-addressed store, hash-verified

1783 }
1784
1785 Status Close() override {
1786 if (closed_) return Status::OK();
1787
1788 RETURN_NOT_OK(CleanupIfFailed(EnsureReadyToFlushFromClose()));
1789
1790 RETURN_NOT_OK(CleanupIfFailed(Flush()));
1791
1792 if (IsMultipartCreated()) {
1793 RETURN_NOT_OK(CleanupIfFailed(FinishPartUploadAfterFlush()));
1794 }
1795
1796 return CleanupAfterClose();
1797 }
1798
1799 Future<> CloseAsync() override {
1800 if (closed_) return Status::OK();

Callers

nothing calls this directly

Calls 2

FlushFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected