mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-15 16:28:30 +01:00
add back fs node cache for renaming
This commit is contained in:
1 parent
4f195a54ca
commit
e74dc4e4bc
7 files changed
+334
-10
No files matched your search
+9
-1
@@ -115,9 +115,17 @@ func Base64Encode(data []byte) string {
|
||||
}
|
||||
|
||||
func Base64Md5(data []byte) string {
|
||||
return Base64Encode(Md5(data))
|
||||
}
|
||||
|
||||
func Md5(data []byte) []byte {
|
||||
hash := md5.New()
|
||||
hash.Write(data)
|
||||
return Base64Encode(hash.Sum(nil))
|
||||
return hash.Sum(nil)
|
||||
}
|
||||
|
||||
func Md5String(data []byte) string {
|
||||
return fmt.Sprintf("%x", Md5(data))
|
||||
}
|
||||
|
||||
func Base64Md5ToBytes(contentMd5 string) []byte {
|
||||
|
||||
Reference in new issue
Block a user