mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
durable: intent calls on the close-bound remote use pointer receivers
On #114 the close-bound remote holds a mutex for the attach context, so the intent wrappers take a pointer like every other bound call; a value receiver copied the lock (go vet copylocks). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
eba04ab67d
commit
ade97bcb8f
1 file changed
+3
-3
@@ -294,19 +294,19 @@ func (r *closeBoundRemote) Delete(ctx context.Context, key string) error {
|
||||
return r.ChunkRemote.Delete(c, key)
|
||||
}
|
||||
|
||||
func (r closeBoundRemote) PutIntent(ctx context.Context, in storage.ChunkIntent) (string, error) {
|
||||
func (r *closeBoundRemote) PutIntent(ctx context.Context, in storage.ChunkIntent) (string, error) {
|
||||
c, end := r.bind(ctx)
|
||||
defer end()
|
||||
return r.ChunkRemote.PutIntent(c, in)
|
||||
}
|
||||
|
||||
func (r closeBoundRemote) DeleteIntent(ctx context.Context, id string) error {
|
||||
func (r *closeBoundRemote) DeleteIntent(ctx context.Context, id string) error {
|
||||
c, end := r.bind(ctx)
|
||||
defer end()
|
||||
return r.ChunkRemote.DeleteIntent(c, id)
|
||||
}
|
||||
|
||||
func (r closeBoundRemote) ListIntents(ctx context.Context) ([]storage.ChunkIntent, error) {
|
||||
func (r *closeBoundRemote) ListIntents(ctx context.Context) ([]storage.ChunkIntent, error) {
|
||||
c, end := r.bind(ctx)
|
||||
defer end()
|
||||
return r.ChunkRemote.ListIntents(c)
|
||||
|
||||
Reference in new issue
Block a user