aboutsummaryrefslogtreecommitdiff
path: root/weed/command
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-10-29 00:35:16 -0700
committerChris Lu <chris.lu@gmail.com>2019-10-29 00:35:16 -0700
commit19b6a16003325ec93bb0e261d5a9c08cd3e03cad (patch)
treebd0c38a7dec60904418173a8f0825e63f965d255 /weed/command
parenteb2172f63fcdf7f5455c142daaceb6b1a489f7f4 (diff)
downloadseaweedfs-19b6a16003325ec93bb0e261d5a9c08cd3e03cad.tar.xz
seaweedfs-19b6a16003325ec93bb0e261d5a9c08cd3e03cad.zip
changed from os.file to backend.DataStorageBackend
Diffstat (limited to 'weed/command')
-rw-r--r--weed/command/backup.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/backup.go b/weed/command/backup.go
index 505de4ae6..cef2bbe3a 100644
--- a/weed/command/backup.go
+++ b/weed/command/backup.go
@@ -128,7 +128,7 @@ func runBackup(cmd *Command, args []string) bool {
return true
}
v.SuperBlock.CompactionRevision = uint16(stats.CompactRevision)
- v.DataFile().WriteAt(v.SuperBlock.Bytes(), 0)
+ v.DataBackend.WriteAt(v.SuperBlock.Bytes(), 0)
}
datSize, _, _ := v.FileStat()