Commit 15a5b49
authored
SingleDirectoryDbLedgerStorage skip optimistic cache put sometimes (#4306)
* SingleDirectoryDbLedgerStorage skip optimistic cache put
When tryOptimisticRead returns 0, the lock is acquired
by another thread and we will fail the validation step.
We can therefore skip the eager cache insertion.1 parent 3c5123d commit 15a5b49
File tree
1 file changed
+6
-2
lines changed- bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/storage/ldb
1 file changed
+6
-2
lines changedLines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
484 | 484 | | |
485 | 485 | | |
486 | 486 | | |
487 | | - | |
488 | | - | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
489 | 493 | | |
490 | 494 | | |
491 | 495 | | |
| |||
0 commit comments