Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(core): change delete-on-updates to remove-on-update and set default false #9319

Merged
merged 11 commits into from
Mar 3, 2025
Prev Previous commit
Next Next commit
temp solution
harshil-goel committed Mar 3, 2025
commit 88d732ddefd9a4d4bdfff9dd5cd617ee23664c3e
11 changes: 10 additions & 1 deletion posting/mvcc.go
Original file line number Diff line number Diff line change
@@ -346,7 +346,16 @@ func (c *Cache) wait() {
if c == nil {
return
}
c.data.Wait()
result := make(chan struct{}, 1)
go func() {
result <- c.data.Wait()
}()
select {
case <-time.After(10 * time.Second):
return
case result := <-result:
return
}
}

func (c *Cache) get(key []byte) (*CachePL, bool) {