MCPcopy Create free account
hub / github.com/apache/impala / IncrementReadPageCount

Method IncrementReadPageCount

be/src/runtime/tmp-file-mgr.cc:1180–1191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1178}
1179
1180bool TmpFileRemote::IncrementReadPageCount(int buffer_idx) {
1181 int64_t read_count = 0;
1182 int64_t total_num = 0;
1183 DCheckReadBufferIdx(buffer_idx);
1184 total_num = GetReadBuffPageCount(buffer_idx);
1185 {
1186 lock_guard<SpinLock> lock(lock_);
1187 read_count = ++disk_read_page_cnts_[buffer_idx];
1188 }
1189 // Return true if all the pages have been read of the block.
1190 return read_count == total_num;
1191}
1192
1193template <typename T>
1194void TmpFileRemote::TryDeleteReadBuffer(const T& lock, int buffer_idx) {

Callers 1

WaitForAsyncReadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected