Skip to content

Commit

Permalink
GEODE-10356: Corrected the comment (apache#7762)
Browse files Browse the repository at this point in the history
* The previous comment on removeOldEntry mentioned that the old entry
was replaced
* This has been corrected to mention that the old entry is removed and
the new entry has been added to the region queue
  • Loading branch information
nabarunnag authored Jun 3, 2022
1 parent 300a159 commit 9683317
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,8 @@ private void removeOldEntry(Conflatable object, Long tailKey) throws CacheExcept
keepOldEntry = true;
}

// Replace the object's value into the queue if necessary
// Remove the old entry from the queue if necessary. The new entry is already present
// in the queue region.
if (!keepOldEntry) {
Conflatable previous = (Conflatable) region.remove(previousIndex);
stats.decQueueSize(1);
Expand Down

0 comments on commit 9683317

Please sign in to comment.