Skip to content

Commit

Permalink
fix - accounting of current buffer slot num.
Browse files Browse the repository at this point in the history
  • Loading branch information
jingliu9 committed Sep 15, 2021
1 parent 020bc71 commit c344d68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cfs/include/BlockBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ class BlockBuffer {
void setIfReportStats(bool b) { reportStat = b; }

int getBlockSize() { return blockSize; }
auto GetCurrentItemNum() { return _cache_items_list.size(); }
auto GetCurrentItemNum() {
return _cache_items_list.size() + freeItems.size();
}

void setFgFlushLimit(int lmt) { numFgFlushInflightLimit = lmt; }

Expand Down

0 comments on commit c344d68

Please sign in to comment.