mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-11 22:38:53 +01:00
simplify volume id printing
This commit is contained in:
1 parent
868e47f994
commit
0c32e2e965
4 files changed
+9
-10
No files matched your search
@@ -37,7 +37,7 @@ type Volume struct {
|
||||
func NewVolume(dirname string, id VolumeId) (v *Volume) {
|
||||
var e error
|
||||
v = &Volume{dir: dirname, Id: id}
|
||||
fileName := strconv.FormatUint(uint64(v.Id), 10)
|
||||
fileName := id.String()
|
||||
v.dataFile, e = os.OpenFile(path.Join(v.dir, fileName+".dat"), os.O_RDWR|os.O_CREATE, 0644)
|
||||
if e != nil {
|
||||
log.Fatalf("New Volume [ERROR] %s\n", e)
|
||||
|
||||
Reference in new issue
Block a user