mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-24 18:59:02 -06:00
Merge pull request #5472 from dolthub/andy/fix-reentrant-locking
go/store/nbs: fix re-entrant deadlock in journal_writer
This commit is contained in:
@@ -335,8 +335,6 @@ func (wr *journalWriter) flushIndexRecord(root hash.Hash, end int64) (err error)
|
||||
|
||||
// readAt reads len(p) bytes from the journal at offset |off|.
|
||||
func (wr *journalWriter) readAt(p []byte, off int64) (n int, err error) {
|
||||
wr.lock.RLock()
|
||||
defer wr.lock.RUnlock()
|
||||
var bp []byte
|
||||
if off < wr.off {
|
||||
// fill some or all of |p| from |wr.file|
|
||||
|
||||
Reference in New Issue
Block a user