mirror of
https://github.com/kopia/kopia.git
synced 2026-09-08 11:26:03 -04:00
replaced storage.BlockExists() with storage.BlockSize() which returns additional info
This commit is contained in:
1 parent
613955de4e
commit
bf40d91585
11 files changed
+60
-53
No files matched your search
@@ -14,11 +14,11 @@ type loggingStorage struct {
|
||||
prefix string
|
||||
}
|
||||
|
||||
func (s *loggingStorage) BlockExists(id string) (bool, error) {
|
||||
func (s *loggingStorage) BlockSize(id string) (int64, error) {
|
||||
t0 := time.Now()
|
||||
result, err := s.base.BlockExists(id)
|
||||
result, err := s.base.BlockSize(id)
|
||||
dt := time.Since(t0)
|
||||
s.printf(s.prefix+"BlockExists(%#v)=%#v,%#v took %v", id, result, err, dt)
|
||||
s.printf(s.prefix+"BlockSize(%#v)=%#v,%#v took %v", id, result, err, dt)
|
||||
return result, err
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user