fix allocate reduplicated volumeId to different volume (#5811)

* fix allocate reduplicated volumeId to different volume

* only check barrier when read

---------

Co-authored-by: Yang Wang <yangwang@weride.ai>
This commit is contained in:
wyang
2024-07-27 12:48:36 +08:00
committed by GitHub
parent c1bffca246
commit 4b1f539ab8
4 changed files with 105 additions and 56 deletions

View File

@@ -2,13 +2,14 @@ package weed_server
import (
"encoding/json"
transport "github.com/Jille/raft-grpc-transport"
"io"
"math/rand"
"os"
"path"
"time"
transport "github.com/Jille/raft-grpc-transport"
"google.golang.org/grpc"
"github.com/seaweedfs/seaweedfs/weed/pb"