bbolt icon indicating copy to clipboard operation
bbolt copied to clipboard

rework file locking

Open heyitsanthony opened this issue 8 years ago • 1 comments

has a bunch of time.Sleep retry logic; should be closer to etcd's locking

heyitsanthony avatar Aug 11 '17 06:08 heyitsanthony

Is this about https://github.com/etcd-io/bbolt/blob/160cd29ec36ec35e06ed04403ffcf51a2dcc7786/bolt_unix.go#L45 ?

I found on etcd repo flock has no retry logic: https://github.com/etcd-io/etcd/blob/f3c9db9c460bba556f4922a5acc3be496eccda40/client/pkg/fileutil/lock_flock.go#L24-L37

cenkalti avatar May 16 '23 18:05 cenkalti